summaryrefslogtreecommitdiff
path: root/src/api/yajl_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/yajl_common.h')
-rw-r--r--src/api/yajl_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/yajl_common.h b/src/api/yajl_common.h
index 49ca3a5..b208fd7 100644
--- a/src/api/yajl_common.h
+++ b/src/api/yajl_common.h
@@ -28,7 +28,7 @@ extern "C" {
/* msft dll export gunk. To build a DLL on windows, you
* must define WIN32, YAJL_SHARED, and YAJL_BUILD. To use a shared
* DLL, you must define YAJL_SHARED and WIN32 */
-#if defined(WIN32) && defined(YAJL_SHARED)
+#if (defined(_WIN32) || defined(WIN32)) && defined(YAJL_SHARED)
# ifdef YAJL_BUILD
# define YAJL_API __declspec(dllexport)
# else