]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim/erc32: Rename EVENT_MAX -> MAX_EVENTS
authorOrgad Shaneh <orgads@gmail.com>
Sun, 3 Mar 2024 10:22:14 +0000 (12:22 +0200)
committerTom Tromey <tromey@adacore.com>
Thu, 21 Mar 2024 16:46:23 +0000 (10:46 -0600)
commitacaf48b921453c37fc2df4151699c912940bcd25
treea10889fb5650db2083f4a1e782f5d301f04ad71f
parent9bec569fda7c76849cf3eb0e4a525f627d25f980
sim/erc32: Rename EVENT_MAX -> MAX_EVENTS

EVENT_MAX is defined as 0x7FFFFFFF (INT_MAX) in winuser.h, so when
building on Windows, the value is overridden and compilation fails
because the array size of evbuf is too large.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28476
Approved-By: Tom Tromey <tom@tromey.com>
sim/erc32/func.c
sim/erc32/sis.h