_GNU_SOURCE has to be before includes
This commit is contained in:
parent
3c8a9da7ef
commit
b8dff14afa
@ -1,11 +1,12 @@
|
|||||||
|
// For MAP_ANONYMOUS on GNU/Linux
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
// For MAP_ANONYMOUS on GNU/Linux
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
// For mmapp()
|
// For mmapp()
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user