소스 검색

include/starpu_util.h: fix code for cases when _GNU_SOURCE is defined without a value

Nathalie Furmento 8 년 전
부모
커밋
39f9dc25de
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) && ! _GNU_SOURCE)
+#if !__GLIBC__ || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SOURCE))
 /* XSI-compliant version of strerror_r returns an int */
 #define starpu_strerror_r(errnum, buf, buflen) \
 	do \