mirror of https://github.com/PCSX2/pcsx2.git
92 lines
2.7 KiB
C++
92 lines
2.7 KiB
C++
/* PCSX2 - PS2 Emulator for PCs
|
|
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
|
*
|
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef PCSX2_PRECOMPILED_HEADER
|
|
#define PCSX2_PRECOMPILED_HEADER
|
|
|
|
// Disable some pointless warnings...
|
|
#ifdef _MSC_VER
|
|
# pragma warning(disable:4250) //'class' inherits 'method' via dominance
|
|
# pragma warning(disable:4996) //ignore the stricmp deprecated warning
|
|
#endif
|
|
|
|
#include "common/Pcsx2Defs.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
// Include the STL that's actually handy.
|
|
|
|
#include <algorithm>
|
|
#include <cassert>
|
|
#include <cinttypes> // Printf format
|
|
#include <condition_variable>
|
|
#include <climits>
|
|
#include <cstring> // string.h under c++
|
|
#include <cstdio> // stdio.h under c++
|
|
#include <cstdlib>
|
|
#include <cmath>
|
|
#include <list>
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <functional>
|
|
#include <optional>
|
|
#include <stack>
|
|
#include <stdexcept>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <thread>
|
|
#include <vector>
|
|
|
|
// ... and include some ANSI/POSIX C libs that are useful too, just for good measure.
|
|
// (these compile lightning fast with or without PCH, but they never change so
|
|
// might as well add them here)
|
|
|
|
#include <stddef.h>
|
|
#include <sys/stat.h>
|
|
|
|
// We use fmt a fair bit now.
|
|
#include "fmt/core.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
// Begin Pcsx2 Includes: Add items here that are local to Pcsx2 but stay relatively
|
|
// unchanged for long periods of time, or happen to be used by almost everything, so they
|
|
// need a full recompile anyway, when modified (etc)
|
|
|
|
#include "PCSX2Base.h"
|
|
|
|
#include "common/Console.h"
|
|
#include "common/MemcpyFast.h"
|
|
#include "common/General.h"
|
|
#include "common/emitter/tools.h"
|
|
|
|
typedef void FnType_Void();
|
|
typedef FnType_Void* Fnptr_Void;
|
|
|
|
// --------------------------------------------------------------------------------------
|
|
// Compiler/OS specific macros and defines
|
|
// --------------------------------------------------------------------------------------
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
# define strnicmp _strnicmp
|
|
# define stricmp _stricmp
|
|
|
|
#else // must be GCC or Clang
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif
|
|
|
|
#endif
|