- define CRTDLL for crt and libcntpr for right usage of _CRTIMP macro

svn path=/trunk/; revision=54796
This commit is contained in:
Jérôme Gardou 2011-12-31 17:44:51 +00:00
parent bc18a6c289
commit 63a8f26892
2 changed files with 14 additions and 2 deletions

View file

@ -449,6 +449,12 @@ endif()
add_library(crt ${CRT_SOURCE}) add_library(crt ${CRT_SOURCE})
target_link_libraries(crt chkstk) target_link_libraries(crt chkstk)
add_target_compile_definitions(crt __MINGW_IMPORT=extern USE_MSVCRT_PREFIX _MSVCRT_LIB_ _MSVCRT_ _MT) add_target_compile_definitions(crt
__MINGW_IMPORT=extern
USE_MSVCRT_PREFIX
_MSVCRT_LIB_
_MSVCRT_
_MT
CRTDLL)
#add_pch(crt precomp.h) #add_pch(crt precomp.h)
add_dependencies(crt psdk asm) add_dependencies(crt psdk asm)

View file

@ -175,5 +175,11 @@ else()
endif() endif()
add_library(libcntpr ${LIBCNTPR_SOURCE}) add_library(libcntpr ${LIBCNTPR_SOURCE})
add_target_compile_definitions(libcntpr NO_RTL_INLINES _NTSYSTEM_ _NTDLLBUILD_ _LIBCNT_ __CRT__NO_INLINE) add_target_compile_definitions(libcntpr
NO_RTL_INLINES
_NTSYSTEM_
_NTDLLBUILD_
_LIBCNT_
__CRT__NO_INLINE
CRTDLL)
add_dependencies(libcntpr psdk asm) add_dependencies(libcntpr psdk asm)