summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorjinjiazhang <jinjiazhang@tencent.com>2019-04-13 10:38:34 +0800
committerjinjiazhang <jinjiazhang@tencent.com>2019-04-13 10:38:34 +0800
commitcdb836d5f845d2bf0fbe58671d073869f41a9936 (patch)
tree1c54c2f3327c67da17bf718eb9dc353cc168bfda /async.c
parent5aa2397f9ec494380774fb9155446f14ebbf3d1f (diff)
Fix Compile Error On Windows (Visual Studio)
Diffstat (limited to 'async.c')
-rw-r--r--async.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/async.c b/async.c
index b6163f2..50eb2d9 100644
--- a/async.c
+++ b/async.c
@@ -32,7 +32,12 @@
#include "fmacros.h"
#include <stdlib.h>
#include <string.h>
+#ifndef _WIN32
#include <strings.h>
+#else
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+#endif
#include <assert.h>
#include <ctype.h>
#include <errno.h>