From 61aec1cb15220fc52919ce7c43cf0a4d416a4cb5 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 17 Mar 2020 13:21:37 +0000 Subject: [PATCH] Use native Windows types/macros when available This prevents conflicts when a translation unit includes `WindowsWrapper.h`, and middleware that includes `windows.h`. --- src/WindowsWrapper.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/WindowsWrapper.h b/src/WindowsWrapper.h index 6a00b9dc..abfeca05 100644 --- a/src/WindowsWrapper.h +++ b/src/WindowsWrapper.h @@ -1,5 +1,10 @@ #pragma once +#ifdef _WIN32 +#include +#include +#else + #include #define RGB(r,g,b) ((r) | ((g) << 8) | ((b) << 16)) @@ -18,3 +23,5 @@ struct RECT }; #define MAX_PATH FILENAME_MAX + +#endif