Skip to content

Commit 1f110b5

Browse files
committed
Chang #error to #warning for the 32-bit environment check except 32-bit Windows
1 parent 7b6867b commit 1f110b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ auto res = cli.Post(
871871
httplib::Client cli(url, port);
872872

873873
// prints: 0 / 000 bytes => 50% complete
874-
auto res = cli.Get("/", [](uint64_t len, uint64_t total) {
874+
auto res = cli.Get("/", [](size_t len, size_t total) {
875875
printf("%lld / %lld bytes => %d%% complete\n",
876876
len, total,
877877
(int)(len*100/total));

httplib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#error \
1919
"cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler."
2020
#elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ < 8
21-
#error \
21+
#warning \
2222
"cpp-httplib doesn't support 32-bit platforms. Please use a 64-bit compiler."
2323
#elif defined(__SIZEOF_SIZE_T__) && __SIZEOF_SIZE_T__ < 8
24-
#error \
24+
#warning \
2525
"cpp-httplib doesn't support platforms where size_t is less than 64 bits."
2626
#endif
2727

0 commit comments

Comments
 (0)