mirror of https://github.com/YosysHQ/abc.git
Merge pull request #217 from hzeller/20230427-avoid-double-define
Don't #define _DEFAULT_SOURCE if already defined.
This commit is contained in:
commit
4f0cdd2167
|
|
@ -18,7 +18,9 @@
|
|||
//#define _BSD_SOURCE
|
||||
|
||||
#ifndef WIN32
|
||||
#ifndef _DEFAULT_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@
|
|||
//#define _BSD_SOURCE
|
||||
|
||||
#ifndef WIN32
|
||||
#ifndef _DEFAULT_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue