2009-09-08 12:08:10 +00:00
|
|
|
/* PCSX2 - PS2 Emulator for PCs
|
2010-05-03 14:08:02 +00:00
|
|
|
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* 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.
|
2009-07-03 00:49:40 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* 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.
|
2009-07-03 00:49:40 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
2009-07-03 00:49:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2009-10-07 19:20:11 +00:00
|
|
|
#ifdef __WXMSW__
|
|
|
|
# include <wx/msw/wrapwin.h>
|
|
|
|
#else
|
|
|
|
|
2009-07-03 00:49:40 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Windows Redtape! No windows.h should be included without it!
|
|
|
|
//
|
|
|
|
// This header's purpose is to include windows.h with the correct OS version info, and
|
|
|
|
// to undefine some of windows.h's more evil macros (min/max). It also does a _WIN32
|
|
|
|
// check, so that we don't have to do it explicitly in every instance where it might
|
|
|
|
// be needed from non-Win32-specific files
|
|
|
|
|
|
|
|
#define NOMINMAX // Disables other libs inclusion of their own min/max macros (we use std instead)
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
2014-08-17 11:03:43 +00:00
|
|
|
// Force availability of to WinNT APIs (change to 0x600 to disable XP-specific APIs)
|
2010-04-25 00:31:27 +00:00
|
|
|
#ifndef WINVER
|
2009-07-03 00:49:40 +00:00
|
|
|
#define WINVER 0x0501
|
|
|
|
#define _WIN32_WINNT 0x0501
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
// disable Windows versions of min/max -- we'll use the typesafe STL versions instead.
|
|
|
|
#undef min
|
|
|
|
#undef max
|
|
|
|
|
|
|
|
#endif
|
2009-10-07 19:20:11 +00:00
|
|
|
#endif
|