Use Redis for Windows (#7364)

This commit is contained in:
mehrdadn
2020-02-28 10:18:56 -08:00
committed by GitHub
parent 3f8b1d2756
commit 0efaa9b310
3 changed files with 31 additions and 11 deletions
+4 -1
View File
@@ -977,7 +977,10 @@ extern "C" {
/// This function must be present on each Redis module. It is used in order to
/// register the commands into the Redis server.
int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
#ifdef _WIN32
__declspec(dllexport)
#endif
int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
REDISMODULE_NOT_USED(argv);
REDISMODULE_NOT_USED(argc);