[LIBXML2] Do not rely on nan() when compiling with clang. CORE-11799 (#94)

This commit is contained in:
Amine Khaldi 2017-10-31 14:10:03 +01:00
parent 8ffffbb294
commit 7571d351ce
No known key found for this signature in database
GPG key ID: DEE3CC0548AE44F1

View 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__)