mirror of https://github.com/YosysHQ/icestorm.git
Only define _GNU_SOURCE for vasprintf() when not _WIN32
This commit is contained in:
parent
8a7a746ca9
commit
12b2295c90
|
|
@ -16,7 +16,10 @@
|
|||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
//
|
||||
|
||||
#if !defined(_WIN32) && !defined(_GNU_SOURCE)
|
||||
// for vasprintf()
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <tuple>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,10 @@
|
|||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
//
|
||||
|
||||
#if !defined(_WIN32) && !defined(_GNU_SOURCE)
|
||||
// for vasprintf()
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue