mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
(MSVC 2003) Add MSVC 2003 compatibility
This commit is contained in:
parent
35939125b0
commit
9777e9d9ef
@ -14,6 +14,12 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(_XBOX) && (_MSC_VER == 1310)
|
||||
#ifndef _WIN32_DCOM
|
||||
#define _WIN32_DCOM
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
@ -67,6 +67,37 @@ extern void *dinput;
|
||||
|
||||
/* Power Request APIs */
|
||||
|
||||
#if !defined(_XBOX) && (_MSC_VER == 1310)
|
||||
typedef struct _REASON_CONTEXT
|
||||
{
|
||||
ULONG Version;
|
||||
DWORD Flags;
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
HMODULE LocalizedReasonModule;
|
||||
ULONG LocalizedreasonId;
|
||||
ULONG ReasonStringCount;
|
||||
LPWSTR *ReasonStrings;
|
||||
} Detailed;
|
||||
LPWSTR SimpleReasonString;
|
||||
} Reason;
|
||||
} REASON_CONTEXT, *PREASON_CONTEXT;
|
||||
|
||||
typedef enum _POWER_REQUEST_TYPE
|
||||
{
|
||||
PowerRequestDisplayRequired,
|
||||
PowerRequestSystemRequired,
|
||||
PowerRequestAwayModeRequired,
|
||||
PowerRequestExecutionRequired
|
||||
} POWER_REQUEST_TYPE, *PPOWER_REQUEST_TYPE;
|
||||
|
||||
#define POWER_REQUEST_CONTEXT_VERSION 0
|
||||
#define POWER_REQUEST_CONTEXT_SIMPLE_STRING 1
|
||||
#define POWER_REQUEST_CONTEXT_DETAILED_STRING 2
|
||||
#endif
|
||||
|
||||
typedef REASON_CONTEXT POWER_REQUEST_CONTEXT, *PPOWER_REQUEST_CONTEXT, *LPPOWER_REQUEST_CONTEXT;
|
||||
|
||||
#ifndef MAX_MONITORS
|
||||
|
Loading…
x
Reference in New Issue
Block a user