[Box Backup-commit] COMMIT r1665 - box/chris/general/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed May 16 00:53:14 BST 2007


Author: chris
Date: 2007-05-16 00:53:14 +0100 (Wed, 16 May 2007)
New Revision: 1665

Modified:
   box/chris/general/lib/common/BoxConfig-MSVC.h
   box/chris/general/lib/common/ExcludeList.cpp
Log:
We now have pcreposix.h instead of regex.h, at least if you follow the
MSVC build instructions.


Modified: box/chris/general/lib/common/BoxConfig-MSVC.h
===================================================================
--- box/chris/general/lib/common/BoxConfig-MSVC.h	2007-05-15 23:50:25 UTC (rev 1664)
+++ box/chris/general/lib/common/BoxConfig-MSVC.h	2007-05-15 23:53:14 UTC (rev 1665)
@@ -176,7 +176,8 @@
 /* #undef HAVE_READLINE_READLINE_H */
 
 /* Define to 1 if you have the <regex.h> header file. */
-#define HAVE_REGEX_H 1
+/* #undef HAVE_REGEX_H */
+#define HAVE_PCREPOSIX_H 1
 
 /* Define to 1 if you have the `setproctitle' function. */
 /* #undef HAVE_SETPROCTITLE */

Modified: box/chris/general/lib/common/ExcludeList.cpp
===================================================================
--- box/chris/general/lib/common/ExcludeList.cpp	2007-05-15 23:50:25 UTC (rev 1664)
+++ box/chris/general/lib/common/ExcludeList.cpp	2007-05-15 23:53:14 UTC (rev 1665)
@@ -9,7 +9,10 @@
 
 #include "Box.h"
 
-#ifdef HAVE_REGEX_H
+#ifdef HAVE_PCREPOSIX_H
+	#include <pcreposix.h>
+	#define EXCLUDELIST_IMPLEMENTATION_REGEX_T_DEFINED
+#elif defined HAVE_REGEX_H
 	#include <regex.h>
 	#define EXCLUDELIST_IMPLEMENTATION_REGEX_T_DEFINED
 #endif




More information about the Boxbackup-commit mailing list