Mercurial > libpst
diff 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 |
line wrap: on
line diff
--- a/src/define.h Fri Feb 06 20:38:04 2009 -0800 +++ b/src/define.h Sat Feb 07 07:57:32 2009 -0800 @@ -14,16 +14,10 @@ #include "vbuf.h" - #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef _WIN32 - #undef HAVE_UNISTD_H - #define HAVE_DIRECT_H - #define HAVE_WINDOWS_H -#endif #define DEBUG_MODE_GEN #define DEBUGPRINT @@ -96,7 +90,7 @@ #define PERM_DIRS 0777 #ifdef _WIN32 - #include <direct.h> // win32 + #include <direct.h> #define D_MKDIR(x) mkdir(x) #define chdir _chdir @@ -127,15 +121,13 @@ #else #include "XGetopt.h" #endif - - #include <windows.h> #else #ifdef HAVE_UNISTD_H #include <unistd.h> - #define D_MKDIR(x) mkdir(x, PERM_DIRS) #else #include "XGetopt.h" #endif + #define D_MKDIR(x) mkdir(x, PERM_DIRS) #endif #ifdef HAVE_SYS_STAT_H