emu48-mirror/sources/GCCPatch/PCH.H

38 lines
1.1 KiB
C
Raw Normal View History

2024-03-19 22:37:03 +01:00
//
// PCH.H (MinGW version)
//
#include <windows.h>
#include <tchar.h>
#include <shellapi.h>
#include <commctrl.h>
#include <stdlib.h>
#include <ctype.h> // for functions missing in stdlib.h
#include <stdio.h>
#include <direct.h>
// #include <crtdbg.h> // missing file
#define _ASSERT(a) // normally defined in missing crtdbg.h
#if defined POINTSTOPOINT // wrong implemented, so new correct definition
#undef POINTSTOPOINT
#define POINTSTOPOINT(pt, pts) \
{ (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \
(pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }
#endif
#if !defined TTN_GETDISPINFOA // missing
#define TTN_GETDISPINFOA (TTN_FIRST - 0)
#endif
#if !defined TTN_GETDISPINFOW // missing
#define TTN_GETDISPINFOW (TTN_FIRST - 10)
#endif
#if !defined TTN_GETDISPINFO // missing
#ifdef UNICODE
#define TTN_GETDISPINFO TTN_GETDISPINFOW
#else
#define TTN_GETDISPINFO TTN_GETDISPINFOA
#endif
#endif