From 086c4627d8ef17ffb32bb49cef530803b4bb7181 Mon Sep 17 00:00:00 2001 From: Andarwinux Date: Thu, 10 Oct 2024 00:00:00 +0000 Subject: [PATCH] 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 --- src/gai_strerror.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gai_strerror.h b/src/gai_strerror.h index da7b6ca7..1ee77ca2 100644 --- a/src/gai_strerror.h +++ b/src/gai_strerror.h @@ -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