winsock
This commit is contained in:
parent
fa154b8662
commit
e9b4f88a5c
3 changed files with 19 additions and 9 deletions
|
|
@ -9,11 +9,27 @@
|
|||
#include <GearSrc/Net.h>
|
||||
#include <GearSrc/Physics.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
#include <stb_ds.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
static void init_winsock(void){
|
||||
WSADATA wsa;
|
||||
|
||||
WSAStartup(MAKEWORD(1, 1), &wsa);
|
||||
}
|
||||
#endif
|
||||
|
||||
void GSInit(void) {
|
||||
GSVersion version;
|
||||
|
||||
#ifdef _WIN32
|
||||
init_winsock();
|
||||
#endif
|
||||
|
||||
GSVersionGet(&version);
|
||||
|
||||
GSLog(NULL, GSLogInfo, "GearSrc Engine %s", version.string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue