emu48-mirror/Sources/GCCPatch/PCH.H

64 lines
1.4 KiB
C
Raw Normal View History

2024-03-19 22:37:03 +01:00
//
// PCH.H (MinGW version)
//
2024-03-19 22:37:54 +01:00
#define _WIN32_IE 0x0200
2024-03-19 22:37:03 +01:00
#include <windows.h>
#include <tchar.h>
#include <shellapi.h>
#include <commctrl.h>
2024-03-19 22:38:33 +01:00
#include <shlobj.h>
2024-03-19 22:37:03 +01:00
#include <stdlib.h>
#include <malloc.h>
#include <stddef.h>
2024-03-19 22:37:54 +01:00
#include <ctype.h>
2024-03-19 22:37:03 +01:00
#include <stdio.h>
#include <direct.h>
#include <conio.h>
2024-03-19 22:38:33 +01:00
// #include <crtdbg.h> // missing file
2024-03-19 22:37:03 +01:00
2024-03-19 22:38:33 +01:00
#if !defined IDC_HAND // Win2k specific definition
#define IDC_HAND MAKEINTRESOURCE(32649)
2024-03-19 22:37:03 +01:00
#endif
#define __unaligned
// normally defined in STDLIB.H
#if !defined __max
#define __max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#if !defined __min
#define __min(a,b) (((a) < (b)) ? (a) : (b))
#endif
// normally defined in missing CRTDBG.H
2024-03-19 22:38:33 +01:00
#if !defined _ASSERT
#define _ASSERT(a)
2024-03-19 22:37:03 +01:00
#endif
#define _CrtSetDbgFlag(f)
#if !defined VERIFY
#if defined _DEBUG
#define VERIFY(f) _ASSERT(f)
#else // _DEBUG
#define VERIFY(f) ((VOID)(f))
#endif // _DEBUG
#endif // VERIFY
#if !defined PROCESS_POWER_THROTTLING_CURRENT_VERSION
#define PROCESS_POWER_THROTTLING_CURRENT_VERSION 1
#endif
#if !defined PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION
#define PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION 0x04
#endif
enum { ProcessPowerThrottling = 4 };
typedef struct _PROCESS_POWER_THROTTLING_STATE {
ULONG Version;
ULONG ControlMask;
ULONG StateMask;
} PROCESS_POWER_THROTTLING_STATE, * PPROCESS_POWER_THROTTLING_STATE;