Mercurial > libpst
diff src/define.h @ 59:7d5c637aaafb
General cleanup and code fixes.
Use autoscan to cleanup our autoconf system.
Use autoconf to detect when we need to use our XGetopt files and other header files.
Decode BCC field.
Fix missing LE32_CPU byte swapping for FILETIME types.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 14 Feb 2008 14:55:32 -0800 |
parents | f66078abed38 |
children | cfd6175f9334 |
line wrap: on
line diff
--- a/src/define.h Wed Feb 06 23:05:56 2008 -0800 +++ b/src/define.h Thu Feb 14 14:55:32 2008 -0800 @@ -40,15 +40,43 @@ #define DEBUG_FUNCRET_NO 10 #define DEBUG_HEXDUMP_NO 11 -//variable number of arguments to this macro. will expand them into -// ## args, then exit with status of 1 #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 __LINUX__ -#include <netinet/in.h> -#include <unistd.h> +#ifdef HAVE_UNISTD_H + #include <unistd.h> +#else + #include "XGetopt.h" + #ifdef HAVE_DIRECT_H + #include <direct.h> // win32 + #define chdir _chdir + #define int32_t __int32 + #endif + + #ifdef HAVE_WINDOWS_H + #include <windows.h> // win32 + #endif +#endif + +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> //mkdir +#endif + +// for reading of directory and clearing in function mk_seperate_dir +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + +#ifdef HAVE_DIRENT_H +# include <dirent.h> #endif