Просмотр исходного кода

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 лет назад
Родитель
Сommit
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)