Fix compiler errors caused by x11 defines and implicit casts

This commit is contained in:
Mr-Wiseguy 2024-12-31 16:37:39 -05:00
parent fa1edf9eaa
commit 3966846e39
2 changed files with 4 additions and 2 deletions

View file

@ -998,7 +998,7 @@ recomp::mods::CodeModLoadError recomp::mods::ModContext::load_mod_code(uint8_t*
std::string cur_error_param; std::string cur_error_param;
CodeModLoadError cur_error; CodeModLoadError cur_error;
ModCodeHandleInputs handle_inputs{ ModCodeHandleInputs handle_inputs{
.base_event_index = num_events, .base_event_index = static_cast<uint32_t>(num_events),
.recomp_trigger_event = recomp_trigger_event, .recomp_trigger_event = recomp_trigger_event,
.get_function = get_function, .get_function = get_function,
.cop0_status_write = cop0_status_write, .cop0_status_write = cop0_status_write,

View file

@ -18,6 +18,8 @@
# undef LockMask # undef LockMask
# undef Always # undef Always
# undef Success # undef Success
# undef False
# undef True
#endif #endif
#include "ultra64.h" #include "ultra64.h"