common: add port header to redefine Windows stuff like POINT or DWORD in portable manner

This commit is contained in:
Alibek Omarov 2023-09-09 03:13:53 +03:00
parent edbd7d2ab9
commit 978d5f94a2

15
common/port.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef PORT_H
#define PORT_H
// a1ba: customized port.h for HLSDK 2.2/TheWastes
#ifndef _WIN32
typedef struct POINT_s
{
int x;
int y;
} POINT;
typedef unsigned int DWORD;
#endif // _WIN32
#endif // PORT_H