Merge pull request #217 from hzeller/20230427-avoid-double-define

Don't #define _DEFAULT_SOURCE if already defined.
This commit is contained in:
alanminko 2023-05-18 22:32:48 -07:00 committed by GitHub
commit 4f0cdd2167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -18,7 +18,9 @@
//#define _BSD_SOURCE
#ifndef WIN32
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
#include <unistd.h>
#endif

View File

@ -19,7 +19,9 @@
//#define _BSD_SOURCE
#ifndef WIN32
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
#include <unistd.h>
#endif