X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/6e6a6326363d4d3818abf59f2e50244a90e707fd..05e3afc87e13ea1b237a19aea241ac2e7eba3b02:/include/stdinc.h diff --git a/include/stdinc.h b/include/stdinc.h index 8efe33be..d620f779 100644 --- a/include/stdinc.h +++ b/include/stdinc.h @@ -19,12 +19,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: stdinc.h 6 2005-09-10 01:02:21Z nenolod $ - * */ -#include "ratbox_lib.h" -#include "config.h" /* Gotta pull in the autoconf stuff */ +#include "rb_lib.h" #include "ircd_defs.h" /* Needed for some reasons here -- dwr */ /* AIX requires this to be the first thing in the file. */ @@ -49,7 +46,7 @@ char *alloca (); # endif # endif #endif - + #ifdef HAVE_STDLIB_H #include @@ -73,13 +70,28 @@ char *alloca (); #endif +#ifdef HAVE_STDBOOL_H +# include +#else +# ifndef HAVE__BOOL +# ifdef __cplusplus +typedef bool _Bool; +# else +# define _Bool signed char +# endif +# endif +# define bool _Bool +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 +#endif + #include #include #include #include #include -#include #include #include #include @@ -99,16 +111,11 @@ char *alloca (); #endif -#include #include -#include #ifdef HAVE_SYS_PARAM_H #include #endif -#include -#include -#include #ifdef HAVE_ERRNO_H #include @@ -143,7 +150,7 @@ extern int errno; #ifdef strdupa -#define LOCAL_COPY(s) strdupa(s) +#define LOCAL_COPY(s) strdupa(s) #else #if defined(__INTEL_COMPILER) || defined(__GNUC__) # define LOCAL_COPY(s) __extension__({ char *_s = alloca(strlen(s) + 1); strcpy(_s, s); _s; })