2014-10-18 14:45:02 +00:00
|
|
|
|
[RunTmChk]
- Implement _RTC_GetErrDesc, _RTC_SetErrorFuncW, add stubs for _RTC_NumErrors, _RTC_SetErrorType, _RTC_SetErrorFunc
- Implement _RTC_DefaultErrorFuncW which will be used, when no other error func was set
- Implement _RTC_InitBase, which will be called from _RTC_Initialize, and which in turn calls either _CRT_RTC_INITW, if CRT was linked, or a local _CRT_RTC_INITW0, which in turn will return the error function to use. This allows us to use a custom error function for all modules that link to (MSV)CRT. Only user32 does not really fit into here, since it uses the same startup code but does not link to MSVCRT.
[CRT]
- Call _RTC_Initialize from __main before initializing the global constructors, but fall back to a dummy _RTC_NoInitialize(), when RunTmChk.lib was not linked. Now we properly initialize both our own as well as MS RunTmChk lib.
svn path=/trunk/; revision=64816
2014-10-18 21:22:52 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
rtcapi.c
|
|
|
|
rtcuserapi.c
|
|
|
|
)
|
2014-10-18 14:45:02 +00:00
|
|
|
|
|
|
|
if(ARCH STREQUAL "i386")
|
|
|
|
list(APPEND ASM_SOURCE i386/_RTC_CheckEsp.S)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_asm_files(runtmchk_asm ${ASM_SOURCE})
|
|
|
|
add_library(runtmchk ${SOURCE} ${runtmchk_asm})
|
|
|
|
add_dependencies(runtmchk asm)
|