summaryrefslogtreecommitdiff
path: root/sds.h
diff options
context:
space:
mode:
Diffstat (limited to 'sds.h')
-rw-r--r--sds.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sds.h b/sds.h
index eda8833..d9b6761 100644
--- a/sds.h
+++ b/sds.h
@@ -35,9 +35,11 @@
#define SDS_MAX_PREALLOC (1024*1024)
#ifdef _MSC_VER
-#define __attribute__(x)
typedef long long ssize_t;
#define SSIZE_MAX (LLONG_MAX >> 1)
+#ifndef __clang__
+#define __attribute__(x)
+#endif
#endif
#include <sys/types.h>