From 956a95bb8f64f261a264db6358a5d9b3890f932f Mon Sep 17 00:00:00 2001 From: Isaac <62234577+IsaacBrumby@users.noreply.github.com> Date: Wed, 16 Feb 2022 15:04:18 +1000 Subject: [PATCH 1/2] Update crash_handler.c --- src/pc/crash_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pc/crash_handler.c b/src/pc/crash_handler.c index 385de3f8..ddf4b47b 100644 --- a/src/pc/crash_handler.c +++ b/src/pc/crash_handler.c @@ -1,8 +1,8 @@ // Adapted from PeachyPeach's sm64pc-omm #if defined(_WIN32) +#ifdef HAVE_SDL2 #include - #include #include #include @@ -492,3 +492,4 @@ __attribute__((constructor)) static void init_crash_handler() { } #endif +#endif From 46a4b377a505bbaab9fde145f59685b7b6364db1 Mon Sep 17 00:00:00 2001 From: Isaac <62234577+IsaacBrumby@users.noreply.github.com> Date: Wed, 16 Feb 2022 15:04:51 +1000 Subject: [PATCH 2/2] Update controller_bind_mapping.c --- src/pc/controller/controller_bind_mapping.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pc/controller/controller_bind_mapping.c b/src/pc/controller/controller_bind_mapping.c index 02c0c4d2..b1da32e2 100644 --- a/src/pc/controller/controller_bind_mapping.c +++ b/src/pc/controller/controller_bind_mapping.c @@ -1,8 +1,11 @@ #ifdef HAVE_SDL2 #include -#else +#else +#ifdef HAVE_SDL + #include #endif +#endif #include "controller_bind_mapping.h" #include "controller_api.h"