diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-07-26 10:28:28 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-07-26 10:31:22 +0200 |
commit | 12b2295c9087d94b75e374bb205ae4d76cf17e2f (patch) | |
tree | 61644daf6fc5462208b594de2986c9ac70e7361a | |
parent | 8a7a746ca9c37ef65d52510260b4d920dcd7d4c4 (diff) | |
download | icestorm-12b2295c9087d94b75e374bb205ae4d76cf17e2f.tar.gz icestorm-12b2295c9087d94b75e374bb205ae4d76cf17e2f.tar.bz2 icestorm-12b2295c9087d94b75e374bb205ae4d76cf17e2f.zip |
Only define _GNU_SOURCE for vasprintf() when not _WIN32
-rw-r--r-- | icepack/icepack.cc | 3 | ||||
-rw-r--r-- | icetime/icetime.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/icepack/icepack.cc b/icepack/icepack.cc index 4eb0305..b5db4c5 100644 --- a/icepack/icepack.cc +++ b/icepack/icepack.cc @@ -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> diff --git a/icetime/icetime.cc b/icetime/icetime.cc index 1d0549c..affc56d 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -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> |