[LIBXML2] Do not rely on nan() when compiling with clang. CORE-11799 (#94)
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 31 Oct 2017 13:10:03 +0000 (14:10 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 31 Oct 2017 13:10:03 +0000 (14:10 +0100)
sdk/lib/3rdparty/libxml2/trionan.c

index 6fbabb5..71f1b1b 100644 (file)
@@ -327,7 +327,7 @@ trio_nan(TRIO_NOARGS)
 
   if (result == 0.0) {
 
-#if defined(TRIO_COMPILER_SUPPORTS_C99)
+#if defined(TRIO_COMPILER_SUPPORTS_C99) && !defined(__clang__)
     result = nan("");
 
 #elif defined(NAN) && defined(__STDC_IEC_559__)