From 8a6e7407d6e2a069e2c8fe89e4a755dd89083103 Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Mon, 18 Mar 2024 16:11:53 +0100 Subject: [PATCH] Fixed error of compilation with the new module in code --- bakanet/src/bakanet.h | 4 ++-- bakanet/src/bakanet/http/http_server.h | 1 + bakanet/src/bakanetpch.h | 7 ++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bakanet/src/bakanet.h b/bakanet/src/bakanet.h index d5f0ea2..03310e8 100755 --- a/bakanet/src/bakanet.h +++ b/bakanet/src/bakanet.h @@ -4,9 +4,9 @@ #include #include -#ifdef BK_PLAFORM_WINDOWS +#if defined(BK_PLATFORM_WINDOWS) #include -#elif BK_PLAFORM_LINUX +#elif defined(BK_PLATFORM_LINUX) #include #else #error "Plaform not supported" diff --git a/bakanet/src/bakanet/http/http_server.h b/bakanet/src/bakanet/http/http_server.h index a0c1682..d2e041a 100755 --- a/bakanet/src/bakanet/http/http_server.h +++ b/bakanet/src/bakanet/http/http_server.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include #include diff --git a/bakanet/src/bakanetpch.h b/bakanet/src/bakanetpch.h index c82a880..0f34610 100755 --- a/bakanet/src/bakanetpch.h +++ b/bakanet/src/bakanetpch.h @@ -12,15 +12,12 @@ #include #include -#define log(str) std::cout << str << "\n"; -#define input(ref) std::cin >> ref; - -#ifdef BK_PLAFORM_WINDOWS +#if defined(BK_PLATFORM_WINDOWS) #include #include #include #pragma comment(lib,"WS2_32.lib") -#elif BK_PLAFORM_LINUX +#elif defined(BK_PLATFORM_LINUX) #include #include #include