Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
afwbkbc committed Jul 7, 2024
1 parent 9a2d63f commit bf1d443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ IF ( VISUAL_STUDIO ) # (Provided in CMakePresets)
ADD_COMPILE_DEFINITIONS( VISUAL_STUDIO )
ELSEIF ( WIN32 ) # probably mingw or github runner
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} PRIVATE wsock32 )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} PRIVATE w2_s32 )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} PRIVATE ws2_32 )
ENDIF ()

# needed for some uncommon IDE and OS combinations
Expand Down
4 changes: 3 additions & 1 deletion src/env/Win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
#if !defined(NOMINMAX)
#define NOMINMAX
#endif
#define WIN32_LEAN_AND_MEAN

#define _WINSOCKAPI_
#define _WINSOCKAPI_
#include <WinSock2.h> // TODO: check if compiles with mingw
#include <windows.h>

Expand Down

0 comments on commit bf1d443

Please sign in to comment.