Use native Windows types/macros when available

This prevents conflicts when a translation unit includes
`WindowsWrapper.h`, and middleware that includes `windows.h`.
This commit is contained in:
Clownacy 2020-03-17 13:21:37 +00:00
parent 44762363cf
commit 61aec1cb15

View file

@ -1,5 +1,10 @@
#pragma once
#ifdef _WIN32
#include <windef.h>
#include <wingdi.h>
#else
#include <stdio.h>
#define RGB(r,g,b) ((r) | ((g) << 8) | ((b) << 16))
@ -18,3 +23,5 @@ struct RECT
};
#define MAX_PATH FILENAME_MAX
#endif