diff --git a/httplib.h b/httplib.h index 52b1b829f7..777038b8e1 100644 --- a/httplib.h +++ b/httplib.h @@ -15,6 +15,12 @@ * Platform compatibility check */ +#if defined(_MSC_VER) +#if defined(_WIN32) && !defined(_WIN64) +#pragma message( \ + "cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler.") +#endif +#else #if defined(_WIN32) && !defined(_WIN64) #warning \ "cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler." @@ -25,6 +31,7 @@ #warning \ "cpp-httplib doesn't support platforms where size_t is less than 64 bits." #endif +#endif #ifdef _WIN32 #if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0A00