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
// Refer to the license.txt file included.
#include "Common/Common.h"
#include "Common/ColorUtil.h"
#include "Common/Common.h"
namespace ColorUtil
{

View file

@ -7,9 +7,9 @@
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
// since it slows down the build a lot.
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <cstdlib>
#include <cstring>
// SVN version number
extern const char *scm_desc_str;
@ -45,10 +45,6 @@ private:
};
#endif
#include "Common/Log.h"
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
#ifdef __APPLE__
// 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.
@ -172,4 +168,7 @@ enum EMUSTATE_CHANGE
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
#include <cstdint>
#include <cstddef>
#include <cstdint>
#ifdef _WIN32

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,13 +5,13 @@
#pragma once
#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/StdMutex.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
#ifndef _WIN32

View file

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

View file

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

View file

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