Ver código fonte

test both definition and value of _GNU_SOURCE
also test _GLIBC

Olivier Aumage 7 anos atrás
pai
commit
e5ec7409b0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      include/starpu_util.h

+ 1 - 1
include/starpu_util.h

@@ -159,7 +159,7 @@ extern "C"
 } while(0)
 
 #if defined(STARPU_HAVE_STRERROR_R)
-#if !__GLIBC__ || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SOURCE))
+#if (! defined(__GLIBC__) || !__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && (! defined(_GNU_SOURCE) || ! _GNU_SOURCE))
 /* XSI-compliant version of strerror_r returns an int */
 #define starpu_strerror_r(errnum, buf, buflen) \
 	do \