1
0
mirror of synced 2025-09-05 13:43:59 +03:00

#2201 Fix 32-bit MSVC compiler error due to unknown command #warning (#2202)

This commit is contained in:
Thomas Beutlich
2025-08-12 23:06:09 +02:00
committed by GitHub
parent 3f44c80fd3
commit dffce89514

View File

@@ -16,8 +16,13 @@
*/ */
#if defined(_WIN32) && !defined(_WIN64) #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 \ #warning \
"cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler." "cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler."
#endif
#elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ < 8 #elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ < 8
#warning \ #warning \
"cpp-httplib doesn't support 32-bit platforms. Please use a 64-bit compiler." "cpp-httplib doesn't support 32-bit platforms. Please use a 64-bit compiler."