From b62f35df72467fa073a6a583632c4583f7ad0058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 12 Feb 2017 20:12:50 -0800 Subject: [PATCH] Fixed VS build. --- tests/vsnprintf_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/vsnprintf_test.cpp b/tests/vsnprintf_test.cpp index 24a4d20..9b29d5f 100644 --- a/tests/vsnprintf_test.cpp +++ b/tests/vsnprintf_test.cpp @@ -8,6 +8,10 @@ #include #include +#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") );