[Box Backup-dev] COMMIT r368 - box/chris/win32/vc2005-compile-fixes/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Fri, 3 Feb 2006 21:15:04 +0000 (GMT)
Author: chris
Date: 2006-02-03 21:15:02 +0000 (Fri, 03 Feb 2006)
New Revision: 368
Modified:
box/chris/win32/vc2005-compile-fixes/lib/common/ExcludeList.cpp
Log:
* ExcludeList.cpp
- Fix compilation of Box Backup on all platforms without regex.h
Modified: box/chris/win32/vc2005-compile-fixes/lib/common/ExcludeList.cpp
===================================================================
--- box/chris/win32/vc2005-compile-fixes/lib/common/ExcludeList.cpp 2006-02-03 20:45:29 UTC (rev 367)
+++ box/chris/win32/vc2005-compile-fixes/lib/common/ExcludeList.cpp 2006-02-03 21:15:02 UTC (rev 368)
@@ -232,7 +232,7 @@
//
mDefinite.clear();
-#ifndef PLATFORM_REGEX_NOT_SUPPORTED
+#ifdef HAVE_REGEX_H
// free regex memory
while(mRegex.size() > 0)
{
@@ -273,7 +273,7 @@
//
//
//
-#ifndef PLATFORM_REGEX_NOT_SUPPORTED
+#ifdef HAVE_REGEX_H
rArchive.Read(iCount);
if (iCount > 0)
@@ -310,7 +310,7 @@
}
}
}
-#endif // PLATFORM_REGEX_NOT_SUPPORTED
+#endif // HAVE_REGEX_H
//
//
@@ -365,7 +365,7 @@
//
//
//
-#ifndef PLATFORM_REGEX_NOT_SUPPORTED
+#ifdef HAVE_REGEX_H
// don't even try to save compiled regular expressions,
// use string copies instead.
ASSERT(mRegex.size() == mRegexStr.size());
@@ -378,7 +378,7 @@
{
rArchive.Write(*i);
}
-#endif // PLATFORM_REGEX_NOT_SUPPORTED
+#endif // HAVE_REGEX_H
//
//