[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3848: Add -DUNICODE=1 when building with Visual Studio so we get t (vidalia/branches/breakpad/src)



Author: edmanm
Date: 2009-06-14 18:50:18 -0400 (Sun, 14 Jun 2009)
New Revision: 3848

Modified:
   vidalia/branches/breakpad/src/CMakeLists.txt
Log:

Add -DUNICODE=1 when building with Visual Studio so we get the wide
character versions of Windows methods (e.g., CreateProcessW).


Modified: vidalia/branches/breakpad/src/CMakeLists.txt
===================================================================
--- vidalia/branches/breakpad/src/CMakeLists.txt	2009-06-13 22:59:36 UTC (rev 3847)
+++ vidalia/branches/breakpad/src/CMakeLists.txt	2009-06-14 22:50:18 UTC (rev 3848)
@@ -30,6 +30,10 @@
   ## errors due to name mangling if we try to use a wchar_t-related method
   add_definitions(/Zc:wchar_t-)
 
+  ## Specify that we want the "W" version of Windows methods, such as
+  ## CreateFileW or WriteFileW
+  add_definitions(-DUNICODE=1)
+
   ## Disable incremental linking for all build types, not just Release
   ## and MinSizeRel
   set(CMAKE_EXE_LINKER_FLAGS_DEBUG