shithub: cstory

Download patch

ref: 61aec1cb15220fc52919ce7c43cf0a4d416a4cb5
parent: 44762363cfe8b5b185d7131bd50fb409b4a5e574
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Mar 17 09:21:37 EDT 2020

Use native Windows types/macros when available

This prevents conflicts when a translation unit includes
`WindowsWrapper.h`, and middleware that includes `windows.h`.

--- a/src/WindowsWrapper.h
+++ b/src/WindowsWrapper.h
@@ -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 @@
 };
 
 #define MAX_PATH FILENAME_MAX
+
+#endif
--