Skip to content

Commit 058c8e1

Browse files
committed
#2201 Fix 32-bit MSVC compiler error due to unknown command #warning
1 parent 3f44c80 commit 058c8e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

httplib.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
* Platform compatibility check
1616
*/
1717

18+
#if defined(_MSC_VER)
19+
#if defined(_WIN32) && !defined(_WIN64)
20+
#pragma message( \
21+
"cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler.")
22+
#endif
23+
#else
1824
#if defined(_WIN32) && !defined(_WIN64)
1925
#warning \
2026
"cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler."
@@ -25,6 +31,7 @@
2531
#warning \
2632
"cpp-httplib doesn't support platforms where size_t is less than 64 bits."
2733
#endif
34+
#endif
2835

2936
#ifdef _WIN32
3037
#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0A00

0 commit comments

Comments
 (0)