From cdb836d5f845d2bf0fbe58671d073869f41a9936 Mon Sep 17 00:00:00 2001 From: jinjiazhang Date: Sat, 13 Apr 2019 10:38:34 +0800 Subject: Fix Compile Error On Windows (Visual Studio) --- sds.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sds.h') 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 #include -- cgit v1.2.3