From 24a935b623d69a79e4c7735c80a44d29b7157706 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 15 Nov 2023 19:34:01 -0700 Subject: [PATCH] Remove unnecessary preprocessor conditionals The build system handles whether or not these files are compiled. We don't need the preprocessor to do that. --- src/SFML/Main/MainAndroid.cpp | 4 ---- src/SFML/Main/MainWin32.cpp | 4 ---- src/SFML/Main/MainiOS.mm | 4 ---- 3 files changed, 12 deletions(-) diff --git a/src/SFML/Main/MainAndroid.cpp b/src/SFML/Main/MainAndroid.cpp index f424d23bc..130e20e5e 100644 --- a/src/SFML/Main/MainAndroid.cpp +++ b/src/SFML/Main/MainAndroid.cpp @@ -36,8 +36,6 @@ //////////////////////////////////////////////////////////// #include -#ifdef SFML_SYSTEM_ANDROID - #include #include #include @@ -568,5 +566,3 @@ JNIEXPORT void ANativeActivity_onCreate(ANativeActivity* activity, void* savedSt // Share this state with the callback functions activity->instance = states; } - -#endif // SFML_SYSTEM_ANDROID diff --git a/src/SFML/Main/MainWin32.cpp b/src/SFML/Main/MainWin32.cpp index fe334125e..a89a409a4 100644 --- a/src/SFML/Main/MainWin32.cpp +++ b/src/SFML/Main/MainWin32.cpp @@ -37,8 +37,6 @@ //////////////////////////////////////////////////////////// #include -#ifdef SFML_SYSTEM_WINDOWS - #include #include // for `__argc` and `__argv` @@ -53,5 +51,3 @@ int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, INT) return main(__argc, __argv); #pragma GCC diagnostic pop } - -#endif // SFML_SYSTEM_WINDOWS diff --git a/src/SFML/Main/MainiOS.mm b/src/SFML/Main/MainiOS.mm index fa2f226e1..49ef3de9b 100644 --- a/src/SFML/Main/MainiOS.mm +++ b/src/SFML/Main/MainiOS.mm @@ -43,8 +43,6 @@ //////////////////////////////////////////////////////////// #include -#ifdef SFML_SYSTEM_IOS - #include @@ -59,5 +57,3 @@ int main(int argc, char** argv) return UIApplicationMain(argc, argv, nil, @"SFAppDelegate"); } - -#endif // SFML_SYSTEM_IOS