Skip to content
Browse files

look for either _WIN32 or WIN32 on windows. closes #44

  • Loading branch information...
1 parent dbcba50 commit e2d080612f566205d16a65fdad05618f92774d4c @lloyd committed Jun 20, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/api/yajl_common.h
  2. +1 −1 src/yajl_gen.c
  3. +1 −1 src/yajl_tree.c
View
2 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
View
2 src/yajl_gen.c
@@ -208,7 +208,7 @@ yajl_gen_integer(yajl_gen g, long long int number)
return yajl_gen_status_ok;
}
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
#include <float.h>
#define isnan _isnan
#define isinf !_finite
View
2 src/yajl_tree.c
@@ -25,7 +25,7 @@
#include "yajl_parser.h"
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
#define snprintf sprintf_s
#endif

0 comments on commit e2d0806

Please sign in to comment.
Something went wrong with that request. Please try again.