comparison 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
comparison
equal deleted inserted replaced
58:a8b772313ff4 59:7d5c637aaafb
38 #define DEBUG_DECRYPT_NO 8 38 #define DEBUG_DECRYPT_NO 8
39 #define DEBUG_FUNCENT_NO 9 39 #define DEBUG_FUNCENT_NO 9
40 #define DEBUG_FUNCRET_NO 10 40 #define DEBUG_FUNCRET_NO 10
41 #define DEBUG_HEXDUMP_NO 11 41 #define DEBUG_HEXDUMP_NO 11
42 42
43 //variable number of arguments to this macro. will expand them into
44 // ## args, then exit with status of 1
45 #include <stdio.h> 43 #include <stdio.h>
46 #include <stdlib.h> 44 #include <stdlib.h>
47 #include <stdarg.h> 45 #include <stdarg.h>
48 46 #include <time.h>
49 #ifdef __LINUX__ 47 #include <string.h>
50 #include <netinet/in.h> 48 #include <ctype.h>
51 #include <unistd.h> 49 #include <limits.h>
50 #include <wchar.h>
51 #include <signal.h>
52 #include <errno.h>
53
54 #ifdef HAVE_UNISTD_H
55 #include <unistd.h>
56 #else
57 #include "XGetopt.h"
58 #ifdef HAVE_DIRECT_H
59 #include <direct.h> // win32
60 #define chdir _chdir
61 #define int32_t __int32
62 #endif
63
64 #ifdef HAVE_WINDOWS_H
65 #include <windows.h> // win32
66 #endif
67 #endif
68
69 #ifdef HAVE_SYS_STAT_H
70 # include <sys/stat.h> //mkdir
71 #endif
72
73 // for reading of directory and clearing in function mk_seperate_dir
74 #ifdef HAVE_SYS_TYPES_H
75 # include <sys/types.h>
76 #endif
77
78 #ifdef HAVE_DIRENT_H
79 # include <dirent.h>
52 #endif 80 #endif
53 81
54 82
55 void pst_debug(char *fmt, ...); 83 void pst_debug(char *fmt, ...);
56 void pst_debug_hexdumper(FILE* out, unsigned char* buf, size_t size, int col, int delta); 84 void pst_debug_hexdumper(FILE* out, unsigned char* buf, size_t size, int col, int delta);