From dffce89514c248f9001c9f772fd15d64c8404a58 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich <115483027+thbeu@users.noreply.github.com> Date: Tue, 12 Aug 2025 23:06:09 +0200 Subject: [PATCH] #2201 Fix 32-bit MSVC compiler error due to unknown command #warning (#2202) --- httplib.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httplib.h b/httplib.h index 52b1b82..25e1b2f 100644 --- a/httplib.h +++ b/httplib.h @@ -16,8 +16,13 @@ */ #if defined(_WIN32) && !defined(_WIN64) +#if defined(_MSC_VER) +#pragma message( \ + "cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler.") +#else #warning \ "cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler." +#endif #elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ < 8 #warning \ "cpp-httplib doesn't support 32-bit platforms. Please use a 64-bit compiler."