[MSVCRT_CRT_APITEST]
[reactos.git] / rostests / apitests / crt / crtdll_crt_apitest.cmake
index 8a7396b..61f2af5 100644 (file)
@@ -314,8 +314,8 @@ list(APPEND SOURCE_CRTDLL
 #    _unlink.c
 #    _unloaddll.c
 #    _utime.c
-#    _vsnprintf.c
-#    _vsnwprintf.c
+    _vsnprintf.c
+    _vsnwprintf.c
 #    _wcsdup.c
 #    _wcsicmp.c
 #    _wcsicoll.c
@@ -454,7 +454,7 @@ list(APPEND SOURCE_CRTDLL
 #    signal.c
 #    sin.c
 #    sinh.c
-#    sprintf.c
+    sprintf.c
 #    sqrt.c
 #    srand.c
 #    sscanf.c
@@ -525,7 +525,7 @@ list(APPEND SOURCE_CRTDLL
 #    wscanf.c
 )
 
-if (ARCH MATCHES i386)
+if(ARCH STREQUAL "i386")
     list(APPEND SOURCE_CRTDLL
     #    _CIpow.c
     #    _ftol.c
@@ -542,7 +542,7 @@ if (ARCH MATCHES i386)
     #    _aullshr.c
     #    _chkstk.c
     )
-elseif (ARCH MATCHES amd64)
+elseif(ARCH STREQUAL "amd64")
     list(APPEND SOURCE_CRTDLL
     #    __C_specific_handler
     #    _setjmp.c
@@ -554,8 +554,8 @@ endif()
 
 
 add_executable(crtdll_crt_apitest testlist.c ${SOURCE_CRTDLL})
-add_target_compile_definitions(crtdll_crt_apitest _DLL __USE_CRTIMP)
+add_target_compile_definitions(crtdll_crt_apitest TEST_CRTDLL)
 target_link_libraries(crtdll_crt_apitest wine ${PSEH_LIB})
 set_module_type(crtdll_crt_apitest win32cui)
-add_importlibs(crtdll_crt_apitest crtdll msvcrt_mini kernel32)
+add_importlibs(crtdll_crt_apitest crtdll msvcrt kernel32 ntdll)
 add_cd_file(TARGET crtdll_crt_apitest DESTINATION reactos/bin FOR all)