From 4b24489393a39038bb6904b512f9923832b7dfdb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 7 Dec 2013 12:19:35 +0200 Subject: [PATCH] * fix compilation on non-Windows systems --- src/gl/system/gl_interface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gl/system/gl_interface.cpp b/src/gl/system/gl_interface.cpp index b70a103f3..a9fea02aa 100644 --- a/src/gl/system/gl_interface.cpp +++ b/src/gl/system/gl_interface.cpp @@ -47,6 +47,9 @@ #include "gl/system/gl_cvars.h" #if defined (__unix__) || defined (__APPLE__) +#define PROC void* +#define LPCSTR const char* + #include #define wglGetProcAddress(x) (*SDL_GL_GetProcAddress)(x) #endif @@ -62,7 +65,7 @@ int occlusion_type=0; PROC myGetProcAddress(LPCSTR proc) { PROC p = wglGetProcAddress(proc); - if (p == NULL) I_Error("Fatal: GL function '%s' not found."); + if (p == NULL) I_Error("Fatal: GL function '%s' not found.", proc); return p; }