Mercurial > libpst
diff src/define.h @ 120:6395ced2b8b2
disable building pst2dii on cygwin
consistent ordering of our include files
all system includes protected by ifdef HAVE_ from autoconf
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 01 Feb 2009 11:24:22 -0800 |
parents | 0f1492b7fe8b |
children | bdb38b434c0a |
line wrap: on
line diff
--- a/src/define.h Sat Jan 31 12:23:46 2009 -0800 +++ b/src/define.h Sun Feb 01 11:24:22 2009 -0800 @@ -5,6 +5,9 @@ * dave.s@earthcorp.com */ +#ifndef DEFINEH_H +#define DEFINEH_H + #ifdef HAVE_CONFIG_H #include <libpst/config.h> #endif @@ -15,9 +18,6 @@ #define HAVE_WINDOWS_H #endif -#ifndef DEFINEH_H -#define DEFINEH_H - #define DEBUG_MODE_GEN #define DEBUGPRINT #define DEBUG_MODE_WARN @@ -45,16 +45,46 @@ #define DEBUG_FUNCRET_NO 10 #define DEBUG_HEXDUMP_NO 11 -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <time.h> -#include <string.h> -#include <ctype.h> -#include <limits.h> -#include <wchar.h> -#include <signal.h> -#include <errno.h> +#ifdef HAVE_STDIO_H + #include <stdio.h> +#endif + +#ifdef HAVE_STDLIB_H + #include <stdlib.h> +#endif + +#ifdef HAVE_STDARG_H + #include <stdarg.h> +#endif + +#ifdef HAVE_TIME_H + #include <time.h> +#endif + +#ifdef HAVE_STRING_H + #include <string.h> +#endif + +#ifdef HAVE_CTYPE_H + #include <ctype.h> +#endif + +#ifdef HAVE_LIMITS_H + #include <limits.h> +#endif + +#ifdef HAVE_WCHAR_H + #include <wchar.h> +#endif + +#ifdef HAVE_SIGNAL_H + #include <signal.h> +#endif + +#ifdef HAVE_ERRNO_H + #include <errno.h> +#endif + #define PERM_DIRS 0777 @@ -103,6 +133,9 @@ #include <windows.h> #else + #ifdef HAVE_STDINT_H + #include <stdint.h> + #endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> #endif