diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-12-29 21:58:22 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-12-29 21:58:22 +0000 |
commit | d301501f11ec0f3a9fc079f995367c6deb6a5c48 (patch) | |
tree | 25f6539e63b0d5c6b64da48768eda5c109c39c54 /lib | |
parent | 44529e9be1a198e3a78b3dc3e971b9fe572d086d (diff) |
Visual Studio 2005 compile fixes, thanks to Gary.
Enable (and require) PCRE when building with Visual Studio 2005.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/BoxConfig-MSVC.h | 4 | ||||
-rw-r--r-- | lib/common/ExcludeList.cpp | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/common/BoxConfig-MSVC.h b/lib/common/BoxConfig-MSVC.h index edc44a75..ff7bf14e 100644 --- a/lib/common/BoxConfig-MSVC.h +++ b/lib/common/BoxConfig-MSVC.h @@ -82,7 +82,7 @@ /* #undef HAVE_GETPEEREID */ /* Define to 1 if you have the `getpid' function. */ -#define HAVE_GETPID 1 +// #define HAVE_GETPID 1 /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ @@ -172,7 +172,7 @@ /* #undef HAVE_READLINE_READLINE_H */ /* Define to 1 if you have the <regex.h> header file. */ -// #define HAVE_REGEX_H 1 +#define HAVE_REGEX_H 1 /* Define to 1 if you have the `setproctitle' function. */ /* #undef HAVE_SETPROCTITLE */ diff --git a/lib/common/ExcludeList.cpp b/lib/common/ExcludeList.cpp index b13b6026..842780b6 100644 --- a/lib/common/ExcludeList.cpp +++ b/lib/common/ExcludeList.cpp @@ -10,7 +10,11 @@ #include "Box.h" #ifdef HAVE_REGEX_H - #include <regex.h> + #ifdef WIN32 + #include <pcreposix.h> + #else + #include <regex.h> + #endif // WIN32 #define EXCLUDELIST_IMPLEMENTATION_REGEX_T_DEFINED #endif |