From 229e0dd640897476da997ff91d8f1a23f7f98f09 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 8 Sep 2016 05:48:43 +0200 Subject: [PATCH] Cleanups --- configuration.c | 8 ++++---- driver.c | 8 ++++---- dynamic.c | 7 ++++--- file_path_special.c | 19 ++++++++++--------- list_special.c | 6 ++---- verbosity.c | 4 ++++ 6 files changed, 28 insertions(+), 24 deletions(-) diff --git a/configuration.c b/configuration.c index ffd026be2b..99c3504982 100644 --- a/configuration.c +++ b/configuration.c @@ -24,6 +24,10 @@ #include #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "file_path_special.h" #include "audio/audio_driver.h" #include "configuration.h" @@ -41,10 +45,6 @@ #include "tasks/tasks_internal.h" -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - /* All config related settings go here. */ struct config_bool_setting diff --git a/driver.c b/driver.c index d374d75372..798430c749 100644 --- a/driver.c +++ b/driver.c @@ -22,6 +22,10 @@ #include "config.h" #endif +#ifdef HAVE_MENU +#include "menu/menu_driver.h" +#endif + #include "command.h" #include "msg_hash.h" @@ -35,10 +39,6 @@ #include "runloop.h" #include "verbosity.h" -#ifdef HAVE_MENU -#include "menu/menu_driver.h" -#endif - #define HASH_LOCATION_DRIVER 0x09189689U #define HASH_CAMERA_DRIVER 0xf25db959U #define HASH_MENU_DRIVER 0xd607fb05U diff --git a/dynamic.c b/dynamic.c index cdb2df358e..bae09024a6 100644 --- a/dynamic.c +++ b/dynamic.c @@ -32,6 +32,10 @@ #include "config.h" #endif +#ifdef HAVE_CHEEVOS +#include "cheevos.h" +#endif + #include "dynamic.h" #include "command.h" @@ -46,9 +50,6 @@ #include "cores/internal_cores.h" #include "frontend/frontend_driver.h" #include "content.h" -#ifdef HAVE_CHEEVOS -#include "cheevos.h" -#endif #include "retroarch.h" #include "runloop.h" #include "configuration.h" diff --git a/file_path_special.c b/file_path_special.c index 1886d4c053..76a569a7c0 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -13,15 +13,6 @@ * If not, see . */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include -#include #ifdef _WIN32 #include @@ -33,6 +24,12 @@ #include #endif +#include +#include +#include +#include +#include + #include #include @@ -41,6 +38,10 @@ #include #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "configuration.h" #include "file_path_special.h" diff --git a/list_special.c b/list_special.c index cc82c618c7..29d308754a 100644 --- a/list_special.c +++ b/list_special.c @@ -24,10 +24,6 @@ #include "config.h" #endif -#include "list_special.h" -#include "frontend/frontend_driver.h" -#include "core_info.h" - #ifdef HAVE_MENU #include "menu/menu_driver.h" #endif @@ -40,6 +36,8 @@ #include "location/location_driver.h" #endif +#include "list_special.h" +#include "frontend/frontend_driver.h" #include "core_info.h" #include "gfx/video_driver.h" #include "input/input_driver.h" diff --git a/verbosity.c b/verbosity.c index b3a1c13a1f..b6d7eba078 100644 --- a/verbosity.c +++ b/verbosity.c @@ -35,6 +35,10 @@ #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "file_path_special.h" #include "verbosity.h"