mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 21:55:13 +08:00
Remove unnecessary preprocessor conditionals
The build system handles whether or not these files are compiled. We don't need the preprocessor to do that.
This commit is contained in:
parent
1699105377
commit
24a935b623
@ -36,8 +36,6 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.hpp>
|
#include <SFML/Config.hpp>
|
||||||
|
|
||||||
#ifdef SFML_SYSTEM_ANDROID
|
|
||||||
|
|
||||||
#include <SFML/System/Android/Activity.hpp>
|
#include <SFML/System/Android/Activity.hpp>
|
||||||
#include <SFML/System/Err.hpp>
|
#include <SFML/System/Err.hpp>
|
||||||
#include <SFML/System/Sleep.hpp>
|
#include <SFML/System/Sleep.hpp>
|
||||||
@ -568,5 +566,3 @@ JNIEXPORT void ANativeActivity_onCreate(ANativeActivity* activity, void* savedSt
|
|||||||
// Share this state with the callback functions
|
// Share this state with the callback functions
|
||||||
activity->instance = states;
|
activity->instance = states;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SFML_SYSTEM_ANDROID
|
|
||||||
|
@ -37,8 +37,6 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.hpp>
|
#include <SFML/Config.hpp>
|
||||||
|
|
||||||
#ifdef SFML_SYSTEM_WINDOWS
|
|
||||||
|
|
||||||
#include <SFML/System/Win32/WindowsHeader.hpp>
|
#include <SFML/System/Win32/WindowsHeader.hpp>
|
||||||
|
|
||||||
#include <cstdlib> // for `__argc` and `__argv`
|
#include <cstdlib> // for `__argc` and `__argv`
|
||||||
@ -53,5 +51,3 @@ int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, INT)
|
|||||||
return main(__argc, __argv);
|
return main(__argc, __argv);
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SFML_SYSTEM_WINDOWS
|
|
||||||
|
@ -43,8 +43,6 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.hpp>
|
#include <SFML/Config.hpp>
|
||||||
|
|
||||||
#ifdef SFML_SYSTEM_IOS
|
|
||||||
|
|
||||||
#include <UIKit/UIKit.h>
|
#include <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
|
||||||
@ -59,5 +57,3 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
return UIApplicationMain(argc, argv, nil, @"SFAppDelegate");
|
return UIApplicationMain(argc, argv, nil, @"SFAppDelegate");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SFML_SYSTEM_IOS
|
|
||||||
|
Loading…
Reference in New Issue
Block a user