Browse Source

Tests: Fix check_types_builtin on MinGW

Julius Pfrommer 4 years ago
parent
commit
2b07397026
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/check_types_builtin.c

+ 2 - 2
tests/check_types_builtin.c

@@ -810,8 +810,8 @@ START_TEST(UA_Float_encodeShallWorkOnExample) {
         {0x00, 0x00, 0x80, 0x7F}, // INF
         {0x00, 0x00, 0x80, 0xFF} // -INF
     };
-#if defined(_WIN32) || defined(__TINYC__)
-    // on WIN32 or TinyCC -NAN is encoded differently
+#if defined(_MSC_VER) || defined(__TINYC__)
+    /* On Visual Studio or TinyCC -NAN is encoded differently */
     result[4][3] = 127;
 #endif