zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
650 stars 62 forks source link

disable `#pragma comment(lib, ...)` macros when compiling with GCC under Windows #43

Closed SeanTolstoyevski closed 1 year ago

SeanTolstoyevski commented 1 year ago

if someone tries to use ENET with GCC under Windows, GCC returns this warning:

-Wunknown-pragmas.

according to the condition here, if compiling on a Windows machine, the #pragma comment.... commands are says to the compiler. but GCC (MinGW, MSYS2 etc.) has no support for this pragma.

the current condition is:

if windows
if not gcc
    pragmas