comparison src/define.h @ 133:2ec889a79e51

patch from Fridrich Strba, some systems need extra library for regex
author Carl Byington <carl@five-ten-sg.com>
date Sat, 07 Feb 2009 07:57:32 -0800
parents e35fd42bac05
children 0b1766da9be8
comparison
equal deleted inserted replaced
132:5e4d6faada34 133:2ec889a79e51
12 #include "timeconv.h" 12 #include "timeconv.h"
13 #include "libstrfunc.h" 13 #include "libstrfunc.h"
14 #include "vbuf.h" 14 #include "vbuf.h"
15 15
16 16
17
18 #ifdef HAVE_CONFIG_H 17 #ifdef HAVE_CONFIG_H
19 #include "config.h" 18 #include "config.h"
20 #endif 19 #endif
21 20
22 #ifdef _WIN32
23 #undef HAVE_UNISTD_H
24 #define HAVE_DIRECT_H
25 #define HAVE_WINDOWS_H
26 #endif
27 21
28 #define DEBUG_MODE_GEN 22 #define DEBUG_MODE_GEN
29 #define DEBUGPRINT 23 #define DEBUGPRINT
30 #define DEBUG_MODE_WARN 24 #define DEBUG_MODE_WARN
31 #define DEBUG_MODE_READ 25 #define DEBUG_MODE_READ
94 88
95 89
96 #define PERM_DIRS 0777 90 #define PERM_DIRS 0777
97 91
98 #ifdef _WIN32 92 #ifdef _WIN32
99 #include <direct.h> // win32 93 #include <direct.h>
100 94
101 #define D_MKDIR(x) mkdir(x) 95 #define D_MKDIR(x) mkdir(x)
102 #define chdir _chdir 96 #define chdir _chdir
103 #define strcasecmp _stricmp 97 #define strcasecmp _stricmp
104 #define vsnprintf _vsnprintf 98 #define vsnprintf _vsnprintf
125 #ifdef __MINGW32__ 119 #ifdef __MINGW32__
126 #include <getopt.h> 120 #include <getopt.h>
127 #else 121 #else
128 #include "XGetopt.h" 122 #include "XGetopt.h"
129 #endif 123 #endif
130
131 #include <windows.h>
132 #else 124 #else
133 #ifdef HAVE_UNISTD_H 125 #ifdef HAVE_UNISTD_H
134 #include <unistd.h> 126 #include <unistd.h>
135 #define D_MKDIR(x) mkdir(x, PERM_DIRS)
136 #else 127 #else
137 #include "XGetopt.h" 128 #include "XGetopt.h"
138 #endif 129 #endif
130 #define D_MKDIR(x) mkdir(x, PERM_DIRS)
139 #endif 131 #endif
140 132
141 #ifdef HAVE_SYS_STAT_H 133 #ifdef HAVE_SYS_STAT_H
142 #include <sys/stat.h> 134 #include <sys/stat.h>
143 #endif 135 #endif