rpcsx/rpcs3/stdafx.h

54 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#ifdef MSVC_CRT_MEMLEAK_DETECTION
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#endif
#define NOMINMAX
2015-12-02 10:23:25 +01:00
#ifndef __STDC_CONSTANT_MACROS
2015-11-26 09:13:33 +01:00
#define __STDC_CONSTANT_MACROS
2015-12-02 10:23:25 +01:00
#endif
2014-07-10 22:54:12 +02:00
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && !defined(DBG_NEW)
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#include "define_new_memleakdetect.h"
2014-07-10 22:54:12 +02:00
#endif
2015-07-01 00:25:52 +02:00
#pragma warning( disable : 4351 )
2015-01-25 17:23:24 +01:00
2016-02-01 22:40:38 +01:00
#include <cstdlib>
2013-11-19 11:30:58 +01:00
#include <cstdint>
2015-06-19 18:53:52 +02:00
#include <climits>
#include <cstring>
2016-05-13 16:01:48 +02:00
#include <exception>
2016-02-01 22:40:38 +01:00
#include <string>
2014-08-28 18:29:05 +02:00
#include <memory>
#include <vector>
2014-09-16 15:56:27 +02:00
#include <array>
2014-08-28 18:29:05 +02:00
#include <functional>
#include <unordered_map>
2016-01-15 15:30:09 +01:00
2016-05-13 16:01:48 +02:00
// MSVC bug workaround
#ifdef _MSC_VER
namespace std { inline namespace literals { inline namespace chrono_literals {}}}
#endif
using namespace std::literals;
2015-08-21 13:07:31 +02:00
2016-02-01 22:40:38 +01:00
// Obsolete, throw fmt::exception directly. Use 'HERE' macro, if necessary.
#define EXCEPTION(format_str, ...) fmt::exception("%s(): " format_str HERE, __FUNCTION__, ##__VA_ARGS__)
#define _PRGNAME_ "RPCS3"
#include "Utilities/types.h"
2016-02-01 22:40:38 +01:00
#include "Utilities/Macro.h"
#include "Utilities/Platform.h"
#include "Utilities/BEType.h"
#include "Utilities/Atomic.h"
#include "Utilities/StrFmt.h"
#include "Utilities/File.h"
#include "Utilities/Log.h"