1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00

Force redefinition of _XOPEN_SOURCE if required

Newer versions of libncurses/libncursesw "#define _XOPEN_SOURCE 600" in
their pkg-config file.  This change forces _XOPEN_SOURCE to be redefined
to 700 in that case.
This commit is contained in:
John Zaitseff 2018-07-27 18:39:18 +10:00
parent f45986e88d
commit a47e8528dc

View File

@ -43,7 +43,11 @@
* System header files *
************************************************************************/
#define _XOPEN_SOURCE 700 // Use SUSv4 where possible
#if ! defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 700
# undef _XOPEN_SOURCE
# define _XOPEN_SOURCE 700 // Use SUSv4 where possible
#endif
#define _GNU_SOURCE 1 // Use GNU extensions as well