Unverified Commit 4f0cdd21 by alanminko Committed by GitHub

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

Don't #define _DEFAULT_SOURCE if already defined.
parents 80c1c016 dfd8fabd
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
//#define _BSD_SOURCE //#define _BSD_SOURCE
#ifndef WIN32 #ifndef WIN32
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#endif
#include <unistd.h> #include <unistd.h>
#endif #endif
......
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
//#define _BSD_SOURCE //#define _BSD_SOURCE
#ifndef WIN32 #ifndef WIN32
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#endif
#include <unistd.h> #include <unistd.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment