From 120c0fb5caa41fb49de123d2e637a7e3baea9aee Mon Sep 17 00:00:00 2001 From: Ritchie Swann Date: Sun, 11 Aug 2024 09:32:33 +0100 Subject: [PATCH] Use TCHAR on Windows --- src/common/rendering/gl_load/gl_load.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/rendering/gl_load/gl_load.c b/src/common/rendering/gl_load/gl_load.c index 14aba7a70..f50830528 100644 --- a/src/common/rendering/gl_load/gl_load.c +++ b/src/common/rendering/gl_load/gl_load.c @@ -46,6 +46,7 @@ static void* PosixGetProcAddress (const GLubyte* name) #undef APIENTRY #endif #include +#include #ifdef _MSC_VER @@ -76,7 +77,7 @@ static void CheckOpenGL(void) { if (opengl32dll == 0) { - opengl32dll = LoadLibrary(L"OpenGL32.DLL"); + opengl32dll = LoadLibrary(_T("OpenGL32.DLL")); if (opengl32dll != 0) { createcontext = (HGLRC(WINAPI*)(HDC)) GetProcAddress(opengl32dll, "wglCreateContext");