From ed2702ed880e549c03c90b0219ea6e5fea24dd47 Mon Sep 17 00:00:00 2001 From: Marek Maskarinec Date: Tue, 11 Oct 2022 20:25:54 +0200 Subject: [PATCH] fix windwos build --- src/image.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index 7d859587..b7e8a6d5 100644 --- a/src/image.c +++ b/src/image.c @@ -7,9 +7,12 @@ #include "tophat.h" +#ifndef GL_UNSIGNED_INT_8_8_8_8 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#endif + #ifdef _WIN32 #define glActiveTexture glActiveTextureCHEW -#define GL_UNSIGNED_INT_8_8_8_8 0x8035 #endif extern th_global *thg;