[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3830: Qt's Visual Studio builds explicitly disable treating wchar_ (vidalia/branches/breakpad/src)
Author: edmanm
Date: 2009-06-09 20:22:23 -0400 (Tue, 09 Jun 2009)
New Revision: 3830
Modified:
vidalia/branches/breakpad/src/CMakeLists.txt
Log:
Qt's Visual Studio builds explicitly disable treating wchar_t as a
built-in type (/Zc:wchar_t-), so we need to do that as well otherwise
we get linker errors due to name mangling if we try to use a
wchar_t-related method (e.g., QString::toWCharArray()).
Modified: vidalia/branches/breakpad/src/CMakeLists.txt
===================================================================
--- vidalia/branches/breakpad/src/CMakeLists.txt 2009-06-10 00:13:13 UTC (rev 3829)
+++ vidalia/branches/breakpad/src/CMakeLists.txt 2009-06-10 00:22:23 UTC (rev 3830)
@@ -24,6 +24,11 @@
if(MSVC)
add_definitions(-D_USE_MATH_DEFINES=1)
+
+ ## Qt's Visual Studio builds explicitly disable treating wchar_t as a
+ ## built-in type, so we need to do that as well otherwise we get linker
+ ## errors due to name mangling if we try to use a wchar_t-related method
+ add_definitions(/Zc:wchar_t-)
endif(MSVC)
## Add some Qt definitions