Only define _GNU_SOURCE for vasprintf() when not _WIN32

This commit is contained in:
Clifford Wolf 2016-07-26 10:28:28 +02:00
parent 8a7a746ca9
commit 12b2295c90
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>