Browse Source

Fixed VS build.

Branimir Karadžić 8 years ago
parent
commit
b62f35df72
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/vsnprintf_test.cpp

+ 4 - 0
tests/vsnprintf_test.cpp

@@ -8,6 +8,10 @@
 #include <inttypes.h>
 #include <float.h>
 
+#ifndef NAN
+#	define NAN (0.0/0.0)
+#endif // NAN
+
 TEST_CASE("vsnprintf NULL buffer", "No output buffer provided.")
 {
 	REQUIRE(4 == bx::snprintf(NULL, 0, "test") );