Patch for kdelibs on MSVC.NET
Michael Drüing
michael at drueing.de
Sun Nov 13 21:43:13 CET 2005
Hi,
here's a small patch which fixes a recent breakage in kdelib's win/ for MSVC7. The problem is that without -DUNICODE, the wrong APIs get called (RegQueryValueA() instead of RegQueryValueW() for example) which leads to trouble when a unicode-string is passed as parameter.
Another possibility would be to call RegQueryValueW() directly to make the unicode nature of this piece of code more explicit.
--Michael
Index: win/SConscript
===================================================================
--- win/SConscript (revision 480209)
+++ win/SConscript (working copy)
@@ -15,7 +15,7 @@
bootstrap.cpp
"""
-obj.ccflags += ' -DMAKE_KDEWIN32_LIB '
+obj.ccflags += ' -DMAKE_KDEWIN32_LIB -DUNICODE '
obj.includes += ' ../kdecore '
if env['CC'] == 'cl':
More information about the Kde-buildsystem
mailing list