# _vprintf_p_l
# _vprintf_s_l
# _utime.c
-# _vscprintf.c
+ _vscprintf.c
# _vscprintf_l
# _vscprintf_p_l
-# _vscwprintf.c
+ _vscwprintf.c
# _vscwprintf_l
# _vscwprintf_p_l
-# _vsnprintf.c
+ _vsnprintf.c
# _vsnprintf_c.c _vsnprintf
# _vsnprintf_c_l.c _vsnprintf_l
# _vsnprintf_l.c
# _vsnprintf_s.c
# _vsnprintf_s_l.c
-# _vsnwprintf.c
+ _vsnwprintf.c
# _vsnwprintf_l.c
# _vsnwprintf_s.c
# _vsnwprintf_s_l.c
# mbsrtowcs
# mbsrtowcs_s
# mbstowcs.c
-# mbstowcs_s
+ mbstowcs_s
# mbtowc.c
# memchr.c
# memcmp.c
# signal.c
# sin.c
# sinh.c
-# sprintf.c
+ sprintf.c
# sprintf_s.c
# sqrt.c
# srand.c
# wcstok_s.c
# wcstol.c
# wcstombs.c
-# wcstombs_s.c
+ wcstombs_s.c
# wcstoul.c
# wcsxfrm.c
# wctob
# wscanf_s.c
)
-if (ARCH MATCHES i386)
+if(ARCH STREQUAL "i386")
list(APPEND SOURCE_MSVCRT
# _CIacos.c
# _CIasin.c
# _seh_longjmp_unwind.c
# -norelay _setjmp3.c
)
-elseif (ARCH MATCHES amd64)
+elseif(ARCH STREQUAL "amd64")
list(APPEND SOURCE_MSVCRT
# __C_specific_handler
# _setjmp.c
)
endif()
-add_executable(static_crt_apitest testlist.c ${SOURCE_MSVCRT})
-target_link_libraries(static_crt_apitest wine ${PSEH_LIB} crt msvcrtex wine)
-set_module_type(static_crt_apitest win32cui)
-add_importlibs(static_crt_apitest kernel32)
-add_cd_file(TARGET static_crt_apitest DESTINATION reactos/bin FOR all)
+# Startup code doesn't go together well with the static CRT... too much __imp_
+#add_executable(static_crt_apitest testlist.c ${SOURCE_MSVCRT})
+#add_target_compile_definitions(static_crt_apitest TEST_STATIC_CRT)
+#target_link_libraries(static_crt_apitest ${PSEH_LIB} crt wine)
+#set_module_type(static_crt_apitest win32cui)
+#add_importlibs(static_crt_apitest kernel32 ntdll)
+#add_cd_file(TARGET static_crt_apitest DESTINATION reactos/bin FOR all)
add_executable(msvcrt_crt_apitest testlist.c ${SOURCE_MSVCRT})
-add_target_compile_definitions(msvcrt_crt_apitest _DLL __USE_CRTIMP)
+add_target_compile_definitions(msvcrt_crt_apitest TEST_MSVCRT)
target_link_libraries(msvcrt_crt_apitest wine ${PSEH_LIB})
set_module_type(msvcrt_crt_apitest win32cui)
-add_importlibs(msvcrt_crt_apitest msvcrt kernel32)
+add_importlibs(msvcrt_crt_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET msvcrt_crt_apitest DESTINATION reactos/bin FOR all)