1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-07-21 16:14:14 -04:00

Clean up the system.h header file

This commit is contained in:
John Zaitseff 2011-07-19 22:53:06 +10:00
parent fdd53e94ba
commit b10b4c21ed

View File

@ -45,7 +45,11 @@
* 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>
@ -53,18 +57,27 @@
#include <stdio.h>
#include <stdbool.h>
#include <stdarg.h>
#include <locale.h>
#include <ctype.h>
#include <string.h>
#include <locale.h>
#include <time.h>
#include <signal.h>
#include <errno.h>
// Headers defined by X/Open Single Unix Specification v4
#include <unistd.h>
#include <sys/stat.h>
#include <monetary.h>
// Headers defined by the GNU C Library
#include <getopt.h>
// X/Open-compatible Curses library
#if defined(HAVE_NCURSESW) && defined(HAVE_NCURSESW_H)
# include <ncursesw/curses.h>
#elif defined(HAVE_NCURSES_H)
@ -72,7 +85,7 @@
#elif defined(HAVE_CURSES_H)
# include <curses.h>
#else
# error "X/Open-compatible curses library required"
# error "X/Open-compatible Curses library required"
#endif