Compare commits
3 Commits
5cf11ac014
...
9f1f313091
Author | SHA1 | Date | |
---|---|---|---|
9f1f313091 | |||
8401f74922 | |||
d2dd95b7cc |
@@ -130,7 +130,7 @@ SOCKET create_remote (int network,char transport, const char* address,int port,s
|
||||
if (err_code != 0) {
|
||||
return (-1 * err_code);
|
||||
}
|
||||
remote_addr_struct = results->ai_addr;
|
||||
remote_addr_struct = (struct sockaddr_storage *)results->ai_addr;
|
||||
network = inet_to_int(results->ai_family);
|
||||
} else {
|
||||
create_addr(network,address,port,remote_addr_struct);
|
||||
|
@@ -5,6 +5,9 @@ extern "C" {
|
||||
#define EASYSOCK_H_
|
||||
|
||||
#ifdef _WIN32
|
||||
#define NOGDI // All GDI defines and routines
|
||||
#define NOUSER // All USER defines and routines
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <winsock2.h>
|
||||
#include <winsock.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
@@ -29,7 +29,7 @@ endif
|
||||
ws2_dep = compiler.find_library('ws2_32', required: false)
|
||||
winmm = compiler.find_library('winmm', required: false)
|
||||
if build_machine.system() == 'windows'
|
||||
add_global_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run
|
||||
add_project_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run
|
||||
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user