build: do not force-include wepoll.h using a command line switch

This commit is contained in:
Bert Belder 2019-06-12 15:57:58 +02:00
parent 017fa62aac
commit 7080d540e2
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461
3 changed files with 3 additions and 2 deletions

View File

@ -69,10 +69,9 @@ set(DLL_TARGET "${HEADER_NAME}.dll")
add_library(${DLL_TARGET} SHARED ${SOURCES_HEADER} ${SOURCES_SRC} ${SOURCES_SRC_REGULAR})
target_include_directories(${DLL_TARGET} PUBLIC include src/regular)
if(MSVC)
target_compile_options(${DLL_TARGET} PUBLIC "-FI${SOURCES_HEADER}")
target_compile_definitions(${DLL_TARGET} PUBLIC "-D${HEADER_NAME_UC}_EXPORT=__declspec(dllexport)" )
else()
target_compile_options(${DLL_TARGET} PUBLIC -include ${SOURCES_HEADER} -fvisibility=hidden)
target_compile_options(${DLL_TARGET} PUBLIC -fvisibility=hidden)
target_compile_definitions(${DLL_TARGET} PUBLIC "-D${HEADER_NAME_UC}_EXPORT=__attribute__((visibility(\"default\")))")
endif()
set_target_properties(${DLL_TARGET} PROPERTIES OUTPUT_NAME ${DLL_NAME})

View File

@ -7,6 +7,7 @@
#include "port.h"
#include "thread-safe-tree.h"
#include "util.h"
#include "wepoll.h"
#include "win.h"
static ts_tree_t epoll__handle_tree;

View File

@ -9,6 +9,7 @@
#include "poll-group.h"
#include "port.h"
#include "sock.h"
#include "wepoll.h"
#include "ws.h"
static const uint32_t SOCK__KNOWN_EPOLL_EVENTS =