From f475599d96b9c942338338f3d40fb09344a33082 Mon Sep 17 00:00:00 2001 From: Dwight Merriman Date: Fri, 7 May 2010 09:20:59 -0400 Subject: [PATCH] fix pcre for utf8 in vsxproj files --- db/db.cpp | 2 +- db/db.vcxproj | 8 ++++---- dbtests/test.vcxproj | 8 ++++---- pcre-7.4/config.h | 2 ++ s/dbgrid.vcxproj | 8 ++++---- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/db/db.cpp b/db/db.cpp index cf8ee3c7ef8..66f2ebb1f4b 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -445,7 +445,7 @@ namespace mongo { int bar = atoi( foo ); if ( ( 2 * ( bar / 2 ) ) != bar ){ log() << "****\n"; - log() << "WARNING: This is development version of MongoDB. Not recommended for production.\n"; + log() << "WARNING: This is development a version (" << versionString << ") of MongoDB. Not recommended for production.\n"; log() << "****" << endl; } diff --git a/db/db.vcxproj b/db/db.vcxproj index 49d2ffec6e0..12d21893ac5 100644 --- a/db/db.vcxproj +++ b/db/db.vcxproj @@ -94,7 +94,7 @@ Disabled ..\..\js\src;..\pcre-7.4;c:\boost;\boost - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) No EnableFastChecks MultiThreadedDebugDLL @@ -119,7 +119,7 @@ Disabled ..\..\js\src;..\pcre-7.4;c:\boost;\boost - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Use @@ -144,7 +144,7 @@ MaxSpeed true ..\..\js\src;..\pcre-7.4;c:\boost;\boost - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) MultiThreaded true Use @@ -171,7 +171,7 @@ MaxSpeed true ..\..\js\src;..\pcre-7.4;c:\boost;\boost - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) MultiThreaded true Use diff --git a/dbtests/test.vcxproj b/dbtests/test.vcxproj index 639f546f723..60d6ef576d6 100644 --- a/dbtests/test.vcxproj +++ b/dbtests/test.vcxproj @@ -93,7 +93,7 @@ Disabled ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) No EnableFastChecks MultiThreadedDebugDLL @@ -118,7 +118,7 @@ Disabled ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Use @@ -143,7 +143,7 @@ MaxSpeed true ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) MultiThreaded true Use @@ -169,7 +169,7 @@ MaxSpeed true ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) MultiThreaded true Use diff --git a/pcre-7.4/config.h b/pcre-7.4/config.h index 14e14bf7730..1dda8bdf8f5 100644 --- a/pcre-7.4/config.h +++ b/pcre-7.4/config.h @@ -212,7 +212,9 @@ them both to 0; an emulation function will be used. */ /* #undef SUPPORT_UCP */ /* Define to enable support for the UTF-8 Unicode encoding. */ +#if( !defined(SUPPORT_UTF8) ) #define SUPPORT_UTF8 +#endif /* Version number of package */ #define VERSION "7.4" diff --git a/s/dbgrid.vcxproj b/s/dbgrid.vcxproj index 7a509c804cb..7775d5afbe6 100644 --- a/s/dbgrid.vcxproj +++ b/s/dbgrid.vcxproj @@ -90,7 +90,7 @@ Disabled ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;XP_WIN;OLDJS;STATIC_JS_API;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;XP_WIN;OLDJS;STATIC_JS_API;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) No EnableFastChecks MultiThreadedDebugDLL @@ -113,7 +113,7 @@ Disabled ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;XP_WIN;OLDJS;STATIC_JS_API;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;XP_WIN;OLDJS;STATIC_JS_API;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Use @@ -136,7 +136,7 @@ MaxSpeed true ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) MultiThreadedDLL true Use @@ -162,7 +162,7 @@ MaxSpeed true ..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories) - MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) + _UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions) MultiThreadedDLL true Use