23 lines
447 B
C++
23 lines
447 B
C++
#pragma once
|
|
|
|
#ifdef _WIN32
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
#include <ws2bth.h>
|
|
#include <windows.h>
|
|
#define in_addr_t ULONG
|
|
#elif __linux__
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <arpa/inet.h>
|
|
#include <errno.h>
|
|
#include <netinet/in.h>
|
|
#define SOCKET int
|
|
#define INVALID_SOCKET -1
|
|
#define SOCKET_ERROR -1
|
|
#else
|
|
#error "이 플랫폼은 지원되지 않습니다."
|
|
#endif
|
|
|
|
#include <gsl/gsl>
|
|
#include "spdlog/spdlog.h" |