Reverted use of tchar.h which should be considered deprecated.
GZDoom is Unicode only - as should be the norm for any Windows application - and will not work when compiled as ANSI so there's no good reason to use this wrapper.
This commit is contained in:
parent
f5c86819ab
commit
5fa220219e
3 changed files with 6 additions and 15 deletions
|
|
@ -69,20 +69,13 @@ if( WIN32 )
|
|||
setupapi
|
||||
oleaut32
|
||||
dbghelp
|
||||
dxguid
|
||||
dwmapi
|
||||
)
|
||||
|
||||
if( NOT MINGW )
|
||||
list( APPEND PROJECT_LIBRARIES legacy_stdio_definitions )
|
||||
endif()
|
||||
legacy_stdio_definitions )
|
||||
|
||||
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
||||
if( DX_dxguid_LIBRARY )
|
||||
list( APPEND PROJECT_LIBRARIES "${DX_dxguid_LIBRARY}" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
else()
|
||||
if( APPLE )
|
||||
set( NO_GTK ON )
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ static void* PosixGetProcAddress (const GLubyte* name)
|
|||
#undef APIENTRY
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
@ -77,7 +76,7 @@ static void CheckOpenGL(void)
|
|||
{
|
||||
if (opengl32dll == 0)
|
||||
{
|
||||
opengl32dll = LoadLibrary(_T("OpenGL32.DLL"));
|
||||
opengl32dll = LoadLibraryA("OpenGL32.DLL");
|
||||
if (opengl32dll != 0)
|
||||
{
|
||||
createcontext = (HGLRC(WINAPI*)(HDC)) GetProcAddress(opengl32dll, "wglCreateContext");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue