Skip to content

Commit

Permalink
Try defining WIN32_LEAN_AND_MEAN in build definition
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Apr 29, 2024
1 parent 49f9956 commit 41c75bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ if(NOT TARGET ssl)
set(OPENSSL_NO_ASM ON)
endif()

if(WIN32)
add_definitions(-DWIN32_LEAN_AND_MEAN)
endif()

add_subdirectory(vendor/boringssl EXCLUDE_FROM_ALL)
endif()

Expand Down
4 changes: 0 additions & 4 deletions binding.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN // Avoid symbol clashes on Windows
#endif

#include <assert.h>
#include <bare.h>
#include <js.h>
Expand Down

0 comments on commit 41c75bf

Please sign in to comment.