Add guard around _GNU_SOURCE define
This avoids warnings if the define has already been set by the build system.
This commit is contained in:
parent
2a0d608b07
commit
04eab8e1f8
@ -21,7 +21,9 @@
|
||||
#ifndef __GENERAL_H
|
||||
#define __GENERAL_H
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#if !defined(_GNU_SOURCE)
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
#if !defined(__USE_MINGW_ANSI_STDIO)
|
||||
# define __USE_MINGW_ANSI_STDIO 1
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user