[CMAKE]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 27 Nov 2010 23:47:10 +0000 (23:47 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 27 Nov 2010 23:47:10 +0000 (23:47 +0000)
Fix build of msvcsup (add missing file)

svn path=/branches/cmake-bringup/; revision=49829

lib/sdk/crt/CMakeLists.txt
lib/sdk/crt/misc/fltused.c [new file with mode: 0644]

index e527d6f..2e03083 100644 (file)
@@ -571,11 +571,13 @@ add_library(libcntpr ${LIBCNTPR_SOURCE})
 set_property(TARGET libcntpr PROPERTY COMPILE_DEFINITIONS NO_RTL_INLINES _NTSYSTEM_ _NTDLLBUILD_ _LIBCNT_ __CRT__NO_INLINE)
 add_dependencies(libcntpr psdk buildno_header asm)
 
 set_property(TARGET libcntpr PROPERTY COMPILE_DEFINITIONS NO_RTL_INLINES _NTSYSTEM_ _NTDLLBUILD_ _LIBCNT_ __CRT__NO_INLINE)
 add_dependencies(libcntpr psdk buildno_header asm)
 
+if(MSVC)
 # This is a temporary solution until we have proper crt libs
 list(APPEND MSVCSUP_SOURCE
 # This is a temporary solution until we have proper crt libs
 list(APPEND MSVCSUP_SOURCE
-#   misc/fltused.c         FIXME: missing file ?
+    misc/fltused.c
     except/i386/chkstk_asm.s
     math/i386/ftol2_asm.S)
 
 add_library(msvcsup ${MSVCSUP_SOURCE})
 add_dependencies(msvcsup psdk buildno_header asm)
     except/i386/chkstk_asm.s
     math/i386/ftol2_asm.S)
 
 add_library(msvcsup ${MSVCSUP_SOURCE})
 add_dependencies(msvcsup psdk buildno_header asm)
+endif()
diff --git a/lib/sdk/crt/misc/fltused.c b/lib/sdk/crt/misc/fltused.c
new file mode 100644 (file)
index 0000000..bf706c6
--- /dev/null
@@ -0,0 +1,2 @@
+
+int _fltused;