Skip to content

Commit d6b8aad

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

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

httplib.h

Lines changed: 5 additions & 7 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."
@@ -26,13 +31,6 @@
2631
"cpp-httplib doesn't support platforms where size_t is less than 64 bits."
2732
#endif
2833

29-
#ifdef _WIN32
30-
#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0A00
31-
#error \
32-
"cpp-httplib doesn't support Windows 8 or lower. Please use Windows 10 or later."
33-
#endif
34-
#endif
35-
3634
/*
3735
* Configuration
3836
*/

0 commit comments

Comments
 (0)