Don't #define _DEFAULT_SOURCE if already defined.

This commit is contained in:
Henner Zeller 2023-04-27 13:44:13 -07:00
parent cc6834d4cc
commit dfd8fabdd7
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