summaryrefslogtreecommitdiff
path: root/sds.h
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@users.noreply.github.com>2019-04-13 09:16:46 -0400
committerGitHub <noreply@github.com>2019-04-13 09:16:46 -0400
commitf5f855c91239706b173e2412cea301f4a3643e2d (patch)
tree1c54c2f3327c67da17bf718eb9dc353cc168bfda /sds.h
parent5aa2397f9ec494380774fb9155446f14ebbf3d1f (diff)
parentcdb836d5f845d2bf0fbe58671d073869f41a9936 (diff)
Merge pull request #658 from jinjiazhang/master
Fix Compile Error On Windows (Visual Studio)
Diffstat (limited to 'sds.h')
-rw-r--r--sds.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sds.h b/sds.h
index 13be75a..eafe2cf 100644
--- a/sds.h
+++ b/sds.h
@@ -34,6 +34,9 @@
#define __SDS_H
#define SDS_MAX_PREALLOC (1024*1024)
+#ifdef _WIN32
+#define __attribute__(x)
+#endif
#include <sys/types.h>
#include <stdarg.h>