Skip to content

Commit

Permalink
build: do not force-include wepoll.h using a command line switch
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jun 12, 2019
1 parent 74fb255 commit 11c32ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Expand Up @@ -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})
Expand Down
1 change: 1 addition & 0 deletions src/api.c
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/sock.c
Expand Up @@ -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 =
Expand Down

0 comments on commit 11c32ae

Please sign in to comment.