2015-05-24 06:32:32 +02:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <algorithm>
|
|
|
|
#include <array>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <bitset>
|
|
|
|
#include <cassert>
|
|
|
|
#include <cctype>
|
|
|
|
#include <cerrno>
|
|
|
|
#include <cmath>
|
|
|
|
#include <cstdarg>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
|
|
|
#include <ctime>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <deque>
|
|
|
|
#include <errno.h>
|
2014-08-15 08:51:13 +02:00
|
|
|
#if !defined ANDROID && !defined _WIN32
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <execinfo.h>
|
2013-10-21 16:36:40 +02:00
|
|
|
#endif
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <float.h>
|
|
|
|
#include <fstream>
|
|
|
|
#include <functional>
|
2014-08-15 08:51:13 +02:00
|
|
|
#ifndef _WIN32
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <getopt.h>
|
2014-08-15 08:51:13 +02:00
|
|
|
#endif
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <iomanip>
|
|
|
|
#include <iostream>
|
2015-03-01 14:52:09 +01:00
|
|
|
#include <limits.h>
|
2016-06-24 10:43:46 +02:00
|
|
|
#include <limits>
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <list>
|
|
|
|
#include <locale.h>
|
|
|
|
#include <map>
|
|
|
|
#include <math.h>
|
2015-03-01 14:52:09 +01:00
|
|
|
#include <memory.h>
|
2016-06-24 10:43:46 +02:00
|
|
|
#include <memory>
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <mutex>
|
|
|
|
#include <numeric>
|
2014-08-15 08:51:13 +02:00
|
|
|
#ifndef _WIN32
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <pthread.h>
|
2014-08-15 08:51:13 +02:00
|
|
|
#endif
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <queue>
|
|
|
|
#include <set>
|
|
|
|
#include <sstream>
|
|
|
|
#include <stack>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <thread>
|
|
|
|
#include <time.h>
|
|
|
|
#include <type_traits>
|
2014-08-15 08:51:13 +02:00
|
|
|
#ifndef _WIN32
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <unistd.h>
|
2014-08-15 08:51:13 +02:00
|
|
|
#endif
|
2013-10-17 06:06:34 +02:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
2014-02-18 12:09:38 +01:00
|
|
|
|
2014-08-15 08:51:13 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
2018-07-05 22:51:30 +02:00
|
|
|
#if _MSC_FULL_VER < 191426433
|
2017-06-03 00:12:33 +02:00
|
|
|
#error Please update your build environment to the latest Visual Studio 2017!
|
2014-08-15 08:51:13 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2014-02-18 12:09:38 +01:00
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/Thread.h"
|