Fix compile with libc++20 on mingw

undef SIZE_MAX caused building aria2 with libc++20 to fail, because libc++ uses this definition internally.

ref:
https://github.com/mstorsjo/llvm-mingw/issues/460
https://github.com/llvm/llvm-project/pull/91798#discussion_r1795235794
pull/2258/head
Andarwinux 2024-10-10 00:00:00 +00:00
parent b519ce04e3
commit 086c4627d8
1 changed files with 0 additions and 4 deletions

View File

@ -33,10 +33,6 @@
extern "C" {
#endif /* __cplusplus */
#ifdef __MINGW32__
# undef SIZE_MAX
#endif // __MINGW32__
#ifndef EAI_SYSTEM
# define EAI_SYSTEM -11 /* System error returned in `errno'. */
#endif