Removed unnecessary #ifdefs for the SDL2 include files.

This commit is contained in:
Leon Styhre 2020-08-23 16:15:06 +02:00
parent 31fae9678a
commit af5a48ed10
15 changed files with 8 additions and 79 deletions

View file

@ -10,11 +10,7 @@
#include "components/NinePatchComponent.h" #include "components/NinePatchComponent.h"
#include "components/TextComponent.h" #include "components/TextComponent.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_timer.h> #include <SDL2/SDL_timer.h>
#else
#include "SDL_timer.h"
#endif
GuiInfoPopup::GuiInfoPopup( GuiInfoPopup::GuiInfoPopup(
Window* window, Window* window,

View file

@ -29,12 +29,7 @@
#include "VolumeControl.h" #include "VolumeControl.h"
#include <algorithm> #include <algorithm>
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_events.h> #include <SDL2/SDL_events.h>
#else
#include "SDL_events.h"
#endif
GuiMenu::GuiMenu(Window* window) : GuiComponent(window), GuiMenu::GuiMenu(Window* window) : GuiComponent(window),
mMenu(window, "MAIN MENU"), mVersion(window) mMenu(window, "MAIN MENU"), mVersion(window)

View file

@ -33,19 +33,13 @@
#include "SystemData.h" #include "SystemData.h"
#include "SystemScreenSaver.h" #include "SystemScreenSaver.h"
#if defined(_WIN64)
#include <cstring>
#include <windows.h>
#endif
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_events.h> #include <SDL2/SDL_events.h>
#include <SDL2/SDL_main.h> #include <SDL2/SDL_main.h>
#include <SDL2/SDL_timer.h> #include <SDL2/SDL_timer.h>
#else
#include "SDL_events.h" #if defined(_WIN64)
#include "SDL_main.h" #include <cstring>
#include "SDL_timer.h" #include <windows.h>
#endif #endif
#include <FreeImage.h> #include <FreeImage.h>

View file

@ -10,11 +10,7 @@
#include "Settings.h" #include "Settings.h"
#include "Sound.h" #include "Sound.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#else
#include "SDL.h"
#endif
std::vector<std::shared_ptr<Sound>> AudioManager::sSoundVector; std::vector<std::shared_ptr<Sound>> AudioManager::sSoundVector;
SDL_AudioSpec AudioManager::sAudioFormat; SDL_AudioSpec AudioManager::sAudioFormat;

View file

@ -8,11 +8,7 @@
#ifndef ES_CORE_AUDIO_MANAGER_H #ifndef ES_CORE_AUDIO_MANAGER_H
#define ES_CORE_AUDIO_MANAGER_H #define ES_CORE_AUDIO_MANAGER_H
#if defined(__linux__) || defined (_WIN64)
#include <SDL2/SDL_audio.h> #include <SDL2/SDL_audio.h>
#else
#include "SDL_audio.h"
#endif
#include <memory> #include <memory>
#include <vector> #include <vector>

View file

@ -13,13 +13,9 @@
#include <libcec/cec.h> #include <libcec/cec.h>
#include <libcec/cecloader.h> #include <libcec/cecloader.h>
#ifdef __linux__
#include <SDL2/SDL_events.h> #include <SDL2/SDL_events.h>
#else
#include "SDL_events.h"
#endif // __linux__
#ifdef _RPI_ #if defined(_RPI_)
extern "C" { extern "C" {
#include <interface/vmcs_host/vc_cecservice.h> #include <interface/vmcs_host/vc_cecservice.h>
#include <interface/vmcs_host/vc_tvservice.h> #include <interface/vmcs_host/vc_tvservice.h>

View file

@ -8,19 +8,13 @@
#ifndef ES_CORE_INPUT_CONFIG_H #ifndef ES_CORE_INPUT_CONFIG_H
#define ES_CORE_INPUT_CONFIG_H #define ES_CORE_INPUT_CONFIG_H
#include <SDL2/SDL_joystick.h>
#include <SDL2/SDL_keyboard.h>
#include <CECInput.h> #include <CECInput.h>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <vector> #include <vector>
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_joystick.h>
#include <SDL2/SDL_keyboard.h>
#else
#include "SDL_joystick.h"
#include "SDL_keyboard.h"
#endif
#define DEVICE_KEYBOARD -1 #define DEVICE_KEYBOARD -1
#define DEVICE_CEC -2 #define DEVICE_CEC -2

View file

@ -16,12 +16,7 @@
#include "Scripting.h" #include "Scripting.h"
#include "Window.h" #include "Window.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#else
#include "SDL.h"
#endif
#include <pugixml.hpp> #include <pugixml.hpp>
#include <assert.h> #include <assert.h>
#include <iostream> #include <iostream>

View file

@ -13,11 +13,7 @@
#include "MameNames.h" #include "MameNames.h"
#include "Settings.h" #include "Settings.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_events.h> #include <SDL2/SDL_events.h>
#else
#include "SDL_events.h"
#endif
#if defined(__APPLE__) #if defined(__APPLE__)
#include <array> #include <array>

View file

@ -9,16 +9,11 @@
#ifndef ES_CORE_SOUND_H #ifndef ES_CORE_SOUND_H
#define ES_CORE_SOUND_H #define ES_CORE_SOUND_H
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_audio.h>
#else
#include "SDL_audio.h"
#endif
#if defined(__APPLE__) #if defined(__APPLE__)
#include <sstream> #include <sstream>
#endif #endif
#include <SDL2/SDL_audio.h>
#include <map> #include <map>
#include <memory> #include <memory>
#include <vector> #include <vector>

View file

@ -12,11 +12,7 @@
#include "ThemeData.h" #include "ThemeData.h"
#include "Window.h" #include "Window.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL_timer.h> #include <SDL2/SDL_timer.h>
#else
#include "SDL_timer.h"
#endif
#define FADE_TIME_MS 200 #define FADE_TIME_MS 200

View file

@ -16,14 +16,8 @@
#include "utils/FileSystemUtil.h" #include "utils/FileSystemUtil.h"
#endif #endif
#if defined(__linux__) || defined(_WIN64) || defined(__APPLE__)
#include <SDL2/SDL_mutex.h> #include <SDL2/SDL_mutex.h>
#include <SDL2/SDL_timer.h> #include <SDL2/SDL_timer.h>
#else
#include "SDL_mutex.h"
#include "SDL_timer.h"
#endif
#include <vlc/vlc.h> #include <vlc/vlc.h>
#if defined(_WIN64) #if defined(_WIN64)

View file

@ -13,11 +13,7 @@
#include "Log.h" #include "Log.h"
#include "Settings.h" #include "Settings.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#else
#include "SDL.h"
#endif
#include <stack> #include <stack>
namespace Renderer namespace Renderer

View file

@ -11,13 +11,8 @@
#include "Log.h" #include "Log.h"
#include "Settings.h" #include "Settings.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h> #include <SDL2/SDL_opengl.h>
#else
#include "SDL.h"
#include "SDL_opengl.h"
#endif
namespace Renderer namespace Renderer
{ {

View file

@ -11,13 +11,8 @@
#include "Log.h" #include "Log.h"
#include "Settings.h" #include "Settings.h"
#if defined(__linux__) || defined(_WIN64)
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <SDL2/SDL_opengles.h> #include <SDL2/SDL_opengles.h>
#else
#include "SDL.h"
#include "SDL_opengles.h"
#endif
namespace Renderer namespace Renderer
{ {