couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1090601 - /couchdb/trunk/src/ejson/encode.c
Date Sat, 09 Apr 2011 14:46:03 GMT
Author: fdmanana
Date: Sat Apr  9 14:46:02 2011
New Revision: 1090601

URL: http://svn.apache.org/viewvc?rev=1090601&view=rev
Log:
Fix ejson application compilation on Windows

Modified:
    couchdb/trunk/src/ejson/encode.c

Modified: couchdb/trunk/src/ejson/encode.c
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/ejson/encode.c?rev=1090601&r1=1090600&r2=1090601&view=diff
==============================================================================
--- couchdb/trunk/src/ejson/encode.c (original)
+++ couchdb/trunk/src/ejson/encode.c Sat Apr  9 14:46:02 2011
@@ -18,6 +18,13 @@
 #include "erl_nif_compat.h"
 #include "yajl/yajl_encode.h"
 
+#if defined(_WIN32) || defined(WIN32) || defined(__WIN32__)
+#include <float.h>
+#define isnan _isnan
+#define isinf !_finite
+#define snprintf _snprintf
+#endif
+
 #define SUCCESS 0
 #define NOMEM 1
 #define BADARG 2



Mime
View raw message