Mercurial > libpst
comparison 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 |
comparison
equal
deleted
inserted
replaced
119:f50f4321aa2d | 120:6395ced2b8b2 |
---|---|
3 * Part of the LibPST project | 3 * Part of the LibPST project |
4 * Written by David Smith | 4 * Written by David Smith |
5 * dave.s@earthcorp.com | 5 * dave.s@earthcorp.com |
6 */ | 6 */ |
7 | 7 |
8 #ifndef DEFINEH_H | |
9 #define DEFINEH_H | |
10 | |
8 #ifdef HAVE_CONFIG_H | 11 #ifdef HAVE_CONFIG_H |
9 #include <libpst/config.h> | 12 #include <libpst/config.h> |
10 #endif | 13 #endif |
11 | 14 |
12 #ifdef _WIN32 | 15 #ifdef _WIN32 |
13 #undef HAVE_UNISTD_H | 16 #undef HAVE_UNISTD_H |
14 #define HAVE_DIRECT_H | 17 #define HAVE_DIRECT_H |
15 #define HAVE_WINDOWS_H | 18 #define HAVE_WINDOWS_H |
16 #endif | 19 #endif |
17 | |
18 #ifndef DEFINEH_H | |
19 #define DEFINEH_H | |
20 | 20 |
21 #define DEBUG_MODE_GEN | 21 #define DEBUG_MODE_GEN |
22 #define DEBUGPRINT | 22 #define DEBUGPRINT |
23 #define DEBUG_MODE_WARN | 23 #define DEBUG_MODE_WARN |
24 #define DEBUG_MODE_READ | 24 #define DEBUG_MODE_READ |
43 #define DEBUG_DECRYPT_NO 8 | 43 #define DEBUG_DECRYPT_NO 8 |
44 #define DEBUG_FUNCENT_NO 9 | 44 #define DEBUG_FUNCENT_NO 9 |
45 #define DEBUG_FUNCRET_NO 10 | 45 #define DEBUG_FUNCRET_NO 10 |
46 #define DEBUG_HEXDUMP_NO 11 | 46 #define DEBUG_HEXDUMP_NO 11 |
47 | 47 |
48 #include <stdio.h> | 48 #ifdef HAVE_STDIO_H |
49 #include <stdlib.h> | 49 #include <stdio.h> |
50 #include <stdarg.h> | 50 #endif |
51 #include <time.h> | 51 |
52 #include <string.h> | 52 #ifdef HAVE_STDLIB_H |
53 #include <ctype.h> | 53 #include <stdlib.h> |
54 #include <limits.h> | 54 #endif |
55 #include <wchar.h> | 55 |
56 #include <signal.h> | 56 #ifdef HAVE_STDARG_H |
57 #include <errno.h> | 57 #include <stdarg.h> |
58 #endif | |
59 | |
60 #ifdef HAVE_TIME_H | |
61 #include <time.h> | |
62 #endif | |
63 | |
64 #ifdef HAVE_STRING_H | |
65 #include <string.h> | |
66 #endif | |
67 | |
68 #ifdef HAVE_CTYPE_H | |
69 #include <ctype.h> | |
70 #endif | |
71 | |
72 #ifdef HAVE_LIMITS_H | |
73 #include <limits.h> | |
74 #endif | |
75 | |
76 #ifdef HAVE_WCHAR_H | |
77 #include <wchar.h> | |
78 #endif | |
79 | |
80 #ifdef HAVE_SIGNAL_H | |
81 #include <signal.h> | |
82 #endif | |
83 | |
84 #ifdef HAVE_ERRNO_H | |
85 #include <errno.h> | |
86 #endif | |
87 | |
58 | 88 |
59 #define PERM_DIRS 0777 | 89 #define PERM_DIRS 0777 |
60 | 90 |
61 #ifdef _WIN32 | 91 #ifdef _WIN32 |
62 #include <direct.h> // win32 | 92 #include <direct.h> // win32 |
101 #include "XGetopt.h" | 131 #include "XGetopt.h" |
102 #endif | 132 #endif |
103 | 133 |
104 #include <windows.h> | 134 #include <windows.h> |
105 #else | 135 #else |
136 #ifdef HAVE_STDINT_H | |
137 #include <stdint.h> | |
138 #endif | |
106 #ifdef HAVE_INTTYPES_H | 139 #ifdef HAVE_INTTYPES_H |
107 #include <inttypes.h> | 140 #include <inttypes.h> |
108 #endif | 141 #endif |
109 #ifdef HAVE_UNISTD_H | 142 #ifdef HAVE_UNISTD_H |
110 #include <unistd.h> | 143 #include <unistd.h> |