Author: spetreolle
Date: Mon Dec 17 22:48:07 2012
New Revision: 57939
URL:
http://svn.reactos.org/svn/reactos?rev=57939&view=rev
Log:
[INFLIB]
Don't use _swprintf.
Tested in rosbe 2, 2.1, windows, linux, and VS 10.
Modified:
trunk/reactos/lib/inflib/CMakeLists.txt
Modified: trunk/reactos/lib/inflib/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/inflib/CMakeLists.txt?…
==============================================================================
--- trunk/reactos/lib/inflib/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/inflib/CMakeLists.txt [iso-8859-1] Mon Dec 17 22:48:07 2012
@@ -20,10 +20,12 @@
infhostput.c
infhostrtl.c)
- add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST -D_CRT_NON_CONFORMING_SWPRINTFS)
+ add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
+ if(MSVC)
+ add_definitions(-D_CRT_NON_CONFORMING_SWPRINTFS)
+ endif()
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
if(NOT MSVC)
- add_definitions(-D_swprintf=swprintf)
add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
endif()
target_link_libraries(inflibhost unicode)