mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG-Core: link to winsock2 & correct included header
This commit is contained in:
@@ -48,6 +48,10 @@ if(UNIX)
|
||||
target_link_libraries(RMG-Core dl)
|
||||
endif(UNIX)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(RMG-Core wsock32 ws2_32)
|
||||
endif(WIN32)
|
||||
|
||||
target_link_libraries(RMG-Core
|
||||
${MINIZIP_LIBRARIES}
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "Rom.hpp"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#else // Unix
|
||||
#include <arpa/inet.h>
|
||||
#endif // _WIN32
|
||||
|
||||
Reference in New Issue
Block a user