mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
Use TCHAR on Windows
This commit is contained in:
parent
801dc4aaac
commit
120c0fb5ca
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ static void* PosixGetProcAddress (const GLubyte* name)
|
|||
#undef APIENTRY
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
||||
#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");
|
||||
|
|
Loading…
Reference in a new issue