Skip to content

Commit

Permalink
Add missing export symbol and suppress dll-interface warnings with MS…
Browse files Browse the repository at this point in the history
…VC (#221)
  • Loading branch information
panosk authored Jan 14, 2021
1 parent 9ba8132 commit a7a2f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if(MSVC)
endif()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4251")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
endif()
Expand Down
2 changes: 1 addition & 1 deletion include/onmt/Tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace onmt
{

void set_random_seed(const unsigned int seed);
void OPENNMTTOKENIZER_EXPORT set_random_seed(const unsigned int seed);

class SubwordEncoder;

Expand Down

0 comments on commit a7a2f74

Please sign in to comment.