Skip to content

Commit

Permalink
Merge pull request #43 from SeanTolstoyevski/disablePragmaCommentLibW…
Browse files Browse the repository at this point in the history
…arningsWithGCCUnderWindows

disable `#pragma comment(lib, ...)` macros when compiling with GCC under Windows
  • Loading branch information
zpl-zak committed May 26, 2023
2 parents 00dad1f + 01c0aa5 commit 0af71dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@
#endif

#ifndef ENET_NO_PRAGMA_LINK
#ifndef __GNUC__
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "winmm.lib")
#endif
#endif

#if _MSC_VER >= 1910
/* It looks like there were changes as of Visual Studio 2017 and there are no 32/64 bit
Expand Down

0 comments on commit 0af71dd

Please sign in to comment.