Преглед изворни кода

Define _GNU_SOURCE not only with gcc

This defines enables extra features from glibc.
These features available also with other compilers (like clang).
Sergey Linev пре 7 година
родитељ
комит
43251655d2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -44,7 +44,7 @@
 #define _WIN32_WINNT 0x0501
 #endif
 #else
-#if defined(__GNUC__) && !defined(_GNU_SOURCE)
+#if !defined(_GNU_SOURCE)
 #define _GNU_SOURCE /* for setgroups(), pthread_setname_np() */
 #endif
 #if defined(__linux__) && !defined(_XOPEN_SOURCE)