Author: tkreuzer
Date: Mon Sep 17 22:43:37 2012
New Revision: 57321
URL:
http://svn.reactos.org/svn/reactos?rev=57321&view=rev
Log:
[WIDL]
Add VS9 build workaround for widl, like done for wpp.
CORE-6636 #resolve
Modified:
trunk/reactos/tools/widl/CMakeLists.txt
Modified: trunk/reactos/tools/widl/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/CMakeLists.txt?…
==============================================================================
--- trunk/reactos/tools/widl/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/tools/widl/CMakeLists.txt [iso-8859-1] Mon Sep 17 22:43:37 2012
@@ -1,8 +1,14 @@
if(MSVC)
add_definitions(
- -Dsnprintf=_snprintf
- -Dvsnprintf=_vsnprintf)
+ -Dsnprintf=_snprintf)
+
+ # Add this definition for WDK only, VS 9 doesn't like that
+ if (DEFINED ENV{DDKBUILDENV})
+ add_definitions(
+ -Dvsnprintf=_vsnprintf)
+ endif()
+
list(APPEND SOURCE getopt.c)
endif()