Fix glibc warning about _BSD_SOURCE and redefined _GNU_SOURCE (fix #1978) (#2631)

This commit is contained in:
itchyny authored and GitHub committed 2023-06-27 07:25:55 +09:00
1 parent 44c89ad3da
commit e468eaa396
1 file changed
+3 -2
+3 -2
View File
@@ -1,5 +1,6 @@
#define _BSD_SOURCE
#define _GNU_SOURCE
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#ifndef __sun__
# define _XOPEN_SOURCE
# define _XOPEN_SOURCE_EXTENDED 1