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" 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