mirror of
https://github.com/reactos/reactos.git
synced 2024-09-05 18:26:53 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
These are required by latest mingw-w64 stl and we are mixing this with our crt headers. Define _CRT_NO_POSIX_ERROR_CODES in all modules that define their own constants.
33 lines
564 B
CMake
33 lines
564 B
CMake
|
|
include_directories(
|
|
src
|
|
adns_win32)
|
|
|
|
add_definitions(
|
|
-D_DLL -D__USE_CRTIMP
|
|
-DADNS_JGAA_WIN32
|
|
-D_CRT_NO_POSIX_ERROR_CODES)
|
|
|
|
list(APPEND SOURCE
|
|
adns_win32/adns_unix_calls.c
|
|
src/check.c
|
|
src/event.c
|
|
src/general.c
|
|
src/parse.c
|
|
src/poll.c
|
|
src/query.c
|
|
src/reply.c
|
|
src/setup.c
|
|
src/transmit.c
|
|
src/types.c
|
|
src/internal.h)
|
|
|
|
add_library(adns ${SOURCE})
|
|
|
|
if(NOT MSVC)
|
|
add_target_compile_flags(adns "-Wno-unused-but-set-variable")
|
|
endif()
|
|
|
|
add_dependencies(adns psdk)
|
|
add_pch(adns src/internal.h SOURCE)
|