mirror of
https://git.zap.org.au/git/trader.git
synced 2024-09-01 17:14:15 -04:00
Clean up the system.h header file
This commit is contained in:
parent
fdd53e94ba
commit
b10b4c21ed
21
src/system.h
21
src/system.h
@ -45,7 +45,11 @@
|
|||||||
* System header files *
|
* System header files *
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
#define _GNU_SOURCE 1
|
#define _XOPEN_SOURCE 700 // Use SUSv4 where possible
|
||||||
|
#define _GNU_SOURCE 1 // Use GNU extensions as well
|
||||||
|
|
||||||
|
|
||||||
|
// Headers defined by ISO/IEC 9899:1999 (C99)
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
@ -53,18 +57,27 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <locale.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <locale.h>
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
|
||||||
|
// Headers defined by X/Open Single Unix Specification v4
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <monetary.h>
|
#include <monetary.h>
|
||||||
|
|
||||||
|
|
||||||
|
// Headers defined by the GNU C Library
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
|
|
||||||
|
// X/Open-compatible Curses library
|
||||||
|
|
||||||
#if defined(HAVE_NCURSESW) && defined(HAVE_NCURSESW_H)
|
#if defined(HAVE_NCURSESW) && defined(HAVE_NCURSESW_H)
|
||||||
# include <ncursesw/curses.h>
|
# include <ncursesw/curses.h>
|
||||||
#elif defined(HAVE_NCURSES_H)
|
#elif defined(HAVE_NCURSES_H)
|
||||||
@ -72,7 +85,7 @@
|
|||||||
#elif defined(HAVE_CURSES_H)
|
#elif defined(HAVE_CURSES_H)
|
||||||
# include <curses.h>
|
# include <curses.h>
|
||||||
#else
|
#else
|
||||||
# error "X/Open-compatible curses library required"
|
# error "X/Open-compatible Curses library required"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user