From 779a156251ea35a17853c5fa5bf20407bd506066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 10 Aug 2023 16:57:38 +0200 Subject: [PATCH] PortManager warning fix. The #pragma pack stuff was redundant anyway --- Core/Util/PortManager.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Core/Util/PortManager.h b/Core/Util/PortManager.h index 31b9f67f95..e5d778283f 100644 --- a/Core/Util/PortManager.h +++ b/Core/Util/PortManager.h @@ -37,18 +37,12 @@ #include #include -#ifdef _MSC_VER -#pragma pack(push,1) -#endif -typedef struct UPnPArgs { +struct UPnPArgs { int cmd; std::string protocol; unsigned short port; unsigned short intport; -} PACK; -#ifdef _MSC_VER -#pragma pack(pop) -#endif +}; #define IP_PROTOCOL_TCP "TCP" #define IP_PROTOCOL_UDP "UDP"