2012-11-01 15:19:01 +00:00
|
|
|
// Copyright (c) 2012- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
2012-11-04 22:01:49 +00:00
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
// This program 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 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2012-12-10 16:21:05 +00:00
|
|
|
#undef _WIN32_WINNT
|
2013-07-25 22:34:55 +00:00
|
|
|
|
2018-03-23 02:18:13 +00:00
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1700
|
2017-02-28 00:47:13 +00:00
|
|
|
#error You need a newer version of Visual Studio
|
2013-07-25 22:34:55 +00:00
|
|
|
#else
|
2018-03-23 21:54:12 +00:00
|
|
|
#define _WIN32_WINNT 0x601 // Compile for Win7 on Visual Studio 2012 and above
|
2013-07-25 22:34:55 +00:00
|
|
|
#endif
|
|
|
|
|
2012-12-10 16:21:05 +00:00
|
|
|
#undef WINVER
|
2018-03-23 21:54:12 +00:00
|
|
|
#define WINVER _WIN32_WINNT
|
2012-11-01 15:19:01 +00:00
|
|
|
#ifndef _WIN32_IE
|
|
|
|
#define _WIN32_IE 0x0600 // Default value is 0x0400
|
|
|
|
#endif
|
2012-12-10 16:21:05 +00:00
|
|
|
|
|
|
|
#undef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
|
2012-11-01 15:19:01 +00:00
|
|
|
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
|
|
|
|
|
2021-02-12 15:37:46 +00:00
|
|
|
#ifndef __clang__
|
2012-11-01 15:19:01 +00:00
|
|
|
#if defined _M_IX86
|
|
|
|
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
#elif defined _M_X64
|
|
|
|
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
#else
|
|
|
|
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
#endif
|
2021-02-12 15:37:46 +00:00
|
|
|
#endif
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2018-03-23 21:54:12 +00:00
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
|
|
|
#ifndef NOMINMAX
|
|
|
|
#define NOMINMAX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// WinSock2 MUST be included before <windows.h> !!!
|
|
|
|
#include <WinSock2.h>
|
|
|
|
|
2013-07-29 04:01:49 +00:00
|
|
|
#include "Common/CommonWindows.h"
|
2017-02-28 00:47:13 +00:00
|
|
|
|
2012-11-01 15:19:01 +00:00
|
|
|
#include <windowsx.h>
|
|
|
|
#include <process.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define _USE_MATH_DEFINES
|
|
|
|
#include <math.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
2013-07-29 04:01:49 +00:00
|
|
|
#include "Common/Log.h"
|