Fix more header sorting issues in Common/ (now check-includes clean).

This commit is contained in:
Pierre Bourdon
2014-02-19 01:54:11 +01:00
parent 939df46674
commit 3f9c38d231
13 changed files with 35 additions and 36 deletions

View File

@ -2,8 +2,8 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Common/Common.h"
#include "Common/ColorUtil.h" #include "Common/ColorUtil.h"
#include "Common/Common.h"
namespace ColorUtil namespace ColorUtil
{ {

View File

@ -7,9 +7,9 @@
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file // DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
// since it slows down the build a lot. // since it slows down the build a lot.
#include <cstdlib>
#include <cstdio> #include <cstdio>
#include <string.h> #include <cstdlib>
#include <cstring>
// SVN version number // SVN version number
extern const char *scm_desc_str; extern const char *scm_desc_str;
@ -45,10 +45,6 @@ private:
}; };
#endif #endif
#include "Common/Log.h"
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
#ifdef __APPLE__ #ifdef __APPLE__
// The Darwin ABI requires that stack frames be aligned to 16-byte boundaries. // The Darwin ABI requires that stack frames be aligned to 16-byte boundaries.
// This is only needed on i386 gcc - x86_64 already aligns to 16 bytes. // This is only needed on i386 gcc - x86_64 already aligns to 16 bytes.
@ -172,4 +168,7 @@ enum EMUSTATE_CHANGE
EMUSTATE_CHANGE_STOP EMUSTATE_CHANGE_STOP
}; };
#include "Common/CommonFuncs.h" #include "Common/CommonTypes.h"
#include "Common/CommonFuncs.h" // NOLINT: needs to be included after CommonTypes
#include "Common/Log.h"
#include "Common/MsgHandler.h"

View File

@ -9,8 +9,8 @@
#pragma once #pragma once
#include <cstdint>
#include <cstddef> #include <cstddef>
#include <cstdint>
#ifdef _WIN32 #ifdef _WIN32

View File

@ -3,32 +3,32 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm> #include <algorithm>
#include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "Common/CommonPaths.h" #include "Common/CommonPaths.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h>
#include <shlobj.h> // for SHGetFolderPath
#include <shellapi.h>
#include <commdlg.h> // for GetSaveFileName #include <commdlg.h> // for GetSaveFileName
#include <io.h>
#include <direct.h> // getcwd #include <direct.h> // getcwd
#include <io.h>
#include <shellapi.h>
#include <shlobj.h> // for SHGetFolderPath
#include <windows.h>
#else #else
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h>
#include <libgen.h> #include <libgen.h>
#include <stdlib.h>
#include <sys/param.h>
#include <sys/types.h>
#endif #endif
#include <fcntl.h>
#if defined(__APPLE__) #if defined(__APPLE__)
#include <CoreFoundation/CFBundle.h>
#include <CoreFoundation/CFString.h> #include <CoreFoundation/CFString.h>
#include <CoreFoundation/CFURL.h> #include <CoreFoundation/CFURL.h>
#include <CoreFoundation/CFBundle.h>
#endif #endif
#ifndef S_ISDIR #ifndef S_ISDIR

View File

@ -6,8 +6,8 @@
// see IniFile.h // see IniFile.h
#include <algorithm> #include <algorithm>
#include <cstdlib>
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -9,8 +9,8 @@
#endif #endif
#include "Common/FileUtil.h" #include "Common/FileUtil.h"
#include "Common/LogManager.h" #include "Common/LogManager.h"
#include "Common/Timer.h"
#include "Common/Thread.h" #include "Common/Thread.h"
#include "Common/Timer.h"
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
const char *file, int line, const char* fmt, ...) const char *file, int line, const char* fmt, ...)

View File

@ -29,10 +29,10 @@
// Modified for Dolphin. // Modified for Dolphin.
#include <cinttypes> #include <cinttypes>
#include <ctime>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <string.h> #include <cstring>
#include <ctime>
#include <errno.h> #include <errno.h>
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -4,20 +4,20 @@
// Thanks to Treeki for writing the original class - 29/01/2012 // Thanks to Treeki for writing the original class - 29/01/2012
#include "Common/CommonPaths.h" #include <ctime>
#include "Common/SettingsHandler.h"
#include "Common/Timer.h"
#include <time.h>
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h>
#include <mmsystem.h> #include <mmsystem.h>
#include <sys/timeb.h> #include <sys/timeb.h>
#include <windows.h>
#else #else
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#include "Common/CommonPaths.h"
#include "Common/SettingsHandler.h"
#include "Common/Timer.h"
SettingsHandler::SettingsHandler() SettingsHandler::SettingsHandler()
{ {
Reset(); Reset();

View File

@ -3,8 +3,8 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm> #include <algorithm>
#include <cstdlib>
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include "Common/CommonPaths.h" #include "Common/CommonPaths.h"
#include "Common/StringUtil.h" #include "Common/StringUtil.h"

View File

@ -5,13 +5,13 @@
#pragma once #pragma once
#include <cstdio> #include <cstdio>
#include <string.h> #include <cstring>
// Don't include common.h here as it will break LogManager
#include "Common/CommonTypes.h"
#include "Common/StdConditionVariable.h" #include "Common/StdConditionVariable.h"
#include "Common/StdMutex.h" #include "Common/StdMutex.h"
#include "Common/StdThread.h" #include "Common/StdThread.h"
// Don't include common.h here as it will break LogManager
#include "Common/CommonTypes.h"
// This may not be defined outside _WIN32 // This may not be defined outside _WIN32
#ifndef _WIN32 #ifndef _WIN32

View File

@ -2,13 +2,13 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <ctime>
#include <cinttypes> #include <cinttypes>
#include <ctime>
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h>
#include <mmsystem.h> #include <mmsystem.h>
#include <sys/timeb.h> #include <sys/timeb.h>
#include <windows.h>
#else #else
#include <sys/time.h> #include <sys/time.h>
#endif #endif

View File

@ -2,8 +2,8 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Common/Common.h"
#include "scmrev.h" #include "scmrev.h"
#include "Common/Common.h"
#ifdef _DEBUG #ifdef _DEBUG
#define BUILD_TYPE_STR "Debug " #define BUILD_TYPE_STR "Debug "

View File

@ -18,7 +18,7 @@
#define _CRT_SECURE_NO_DEPRECATE 1 #define _CRT_SECURE_NO_DEPRECATE 1
#define _CRT_NONSTDC_NO_DEPRECATE 1 #define _CRT_NONSTDC_NO_DEPRECATE 1
*/ */
#include <windows.h>
#include <tchar.h> #include <tchar.h>
#include <vector> #include <vector>
#include <windows.h>