fix here too

This commit is contained in:
Aaron Kimbre 2025-01-06 13:55:43 -06:00
parent c31bf3fad4
commit 72ae55981b
2 changed files with 9 additions and 6 deletions

View File

@ -14,9 +14,13 @@
#include "eHTTPStatusCode.h"
#include "magic_enum.hpp"
#include "ChatPackets.h"
#include "StringifiedEnum.h"
#ifdef DARKFLAME_PLATFORM_WIN32
#pragma push_macro("DELETE")
#undef DELETE
#endif
using json = nlohmann::json;
typedef struct mg_connection mg_connection;
@ -170,6 +174,10 @@ void HandleRequests(mg_connection* connection, int request, void* request_data)
}
}
#ifdef DARKFLAME_PLATFORM_WIN32
#pragma pop_macro("DELETE")
#endif
ChatWebAPI::ChatWebAPI() {
mg_log_set(MG_LL_NONE);
mg_mgr_init(&mgr); // Initialize event manager

View File

@ -1,11 +1,6 @@
#ifndef __EHTTPMETHODS__H__
#define __EHTTPMETHODS__H__
#include <cstdint>
#include "magic_enum.hpp"
#include "dPlatforms.h"
#ifdef DARKFLAME_PLATFORM_WIN32
#pragma push_macro("DELETE")
#undef DELETE