Fixed error of compilation with the new module in code

multi_plaform
anulax1225 ago%!(EXTRA string=1 year)
parent 5624665623
commit 8a6e7407d6
  1. 4
      bakanet/src/bakanet.h
  2. 1
      bakanet/src/bakanet/http/http_server.h
  3. 7
      bakanet/src/bakanetpch.h

@ -4,9 +4,9 @@
#include <bakanet/core/packet.h>
#include <bakanet/core/socket.h>
#ifdef BK_PLAFORM_WINDOWS
#if defined(BK_PLATFORM_WINDOWS)
#include <platform/windows/windows_socket.h>
#elif BK_PLAFORM_LINUX
#elif defined(BK_PLATFORM_LINUX)
#include <platform/linux/linux_socket.h>
#else
#error "Plaform not supported"

@ -1,6 +1,7 @@
#pragma once
#include <bakanetpch.h>
#include <bakatools.h>
#include <bakanet/core/ip_address.h>
#include <bakanet/core/packet.h>
#include <bakanet/core/socket.h>

@ -12,15 +12,12 @@
#include <functional>
#include <thread>
#define log(str) std::cout << str << "\n";
#define input(ref) std::cin >> ref;
#ifdef BK_PLAFORM_WINDOWS
#if defined(BK_PLATFORM_WINDOWS)
#include <Ws2tcpip.h>
#include <WinSock2.h>
#include <tchar.h>
#pragma comment(lib,"WS2_32.lib")
#elif BK_PLAFORM_LINUX
#elif defined(BK_PLATFORM_LINUX)
#include <netinet/in.h>
#include <stdlib.h>
#include <sys/socket.h>

Loading…
Cancel
Save