Skip to content

Commit 086c462

Browse files
committed
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: mstorsjo/llvm-mingw#460 llvm/llvm-project#91798 (comment)
1 parent b519ce0 commit 086c462

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/gai_strerror.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
extern "C" {
3434
#endif /* __cplusplus */
3535

36-
#ifdef __MINGW32__
37-
# undef SIZE_MAX
38-
#endif // __MINGW32__
39-
4036
#ifndef EAI_SYSTEM
4137
# define EAI_SYSTEM -11 /* System error returned in `errno'. */
4238
#endif

0 commit comments

Comments
 (0)