瀏覽代碼

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
 #define _WIN32_WINNT 0x0501
 #endif
 #endif
 #else
 #else
-#if defined(__GNUC__) && !defined(_GNU_SOURCE)
+#if !defined(_GNU_SOURCE)
 #define _GNU_SOURCE /* for setgroups(), pthread_setname_np() */
 #define _GNU_SOURCE /* for setgroups(), pthread_setname_np() */
 #endif
 #endif
 #if defined(__linux__) && !defined(_XOPEN_SOURCE)
 #if defined(__linux__) && !defined(_XOPEN_SOURCE)