[INFLIB]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Mon, 17 Dec 2012 22:48:07 +0000 (22:48 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Mon, 17 Dec 2012 22:48:07 +0000 (22:48 +0000)
Don't use _swprintf.
Tested in rosbe 2, 2.1, windows, linux, and VS 10.

svn path=/trunk/; revision=57939

reactos/lib/inflib/CMakeLists.txt

index 7856d19..647dc5a 100644 (file)
@@ -20,10 +20,12 @@ else()
         infhostput.c
         infhostrtl.c)
 
         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_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)
         add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
     endif()
     target_link_libraries(inflibhost unicode)