From 6be2137f45b25b5397a84e9fb7b1a4734493ba70 Mon Sep 17 00:00:00 2001 From: kb1000 Date: Mon, 3 Jun 2024 23:03:22 +0200 Subject: [PATCH] Include windows.h in compat/gl.h for GLU --- source/game/compat/gl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/game/compat/gl.h b/source/game/compat/gl.h index 0e9a600e..cc3f059f 100644 --- a/source/game/compat/gl.h +++ b/source/game/compat/gl.h @@ -1,5 +1,9 @@ #pragma once #include "glad/gl.h" +#ifdef _WIN32 +// defines APIENTRY, GL/gl.h includes it but Glad doesn't +# include +#endif #if defined(__APPLE__) && defined(__MACH__) # include #else