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

Avoid redefining `_GNU_SOURCE`. (#561)

player-03 3 лет назад
Родитель
Сommit
80828ef172
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/hl.h

+ 3 - 1
src/hl.h

@@ -53,7 +53,9 @@
 
 
 #if defined(linux) || defined(__linux__)
 #if defined(linux) || defined(__linux__)
 #	define HL_LINUX
 #	define HL_LINUX
-#	define _GNU_SOURCE
+#	ifndef _GNU_SOURCE
+#		define _GNU_SOURCE
+#	endif
 #endif
 #endif
 
 
 #if defined(HL_IOS) || defined(HL_ANDROID) || defined(HL_TVOS)
 #if defined(HL_IOS) || defined(HL_ANDROID) || defined(HL_TVOS)