Skip to content

Commit dffce89

Browse files
authored
#2201 Fix 32-bit MSVC compiler error due to unknown command #warning (#2202)
1 parent 3f44c80 commit dffce89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

httplib.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@
1616
*/
1717

1818
#if defined(_WIN32) && !defined(_WIN64)
19+
#if defined(_MSC_VER)
20+
#pragma message( \
21+
"cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler.")
22+
#else
1923
#warning \
2024
"cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler."
25+
#endif
2126
#elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ < 8
2227
#warning \
2328
"cpp-httplib doesn't support 32-bit platforms. Please use a 64-bit compiler."

0 commit comments

Comments
 (0)