From 8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Oct 2012 21:28:42 +0300 Subject: Fix for windows compilation. --- src/graphicsmanager.cpp | 2 +- src/mgl.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index b230d77cf..f03d784a1 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -784,7 +784,7 @@ void GraphicsManager::detectVideoSettings() } } -static void debugCallback(GLenum source, GLenum type, GLuint id, +static CALLBACK void debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *text, GLvoid *userParam) { diff --git a/src/mgl.h b/src/mgl.h index 6f10078a0..f1686a2ba 100644 --- a/src/mgl.h +++ b/src/mgl.h @@ -126,6 +126,8 @@ defNameE(glDebugMessageCallback); typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc); defNameE(wglGetExtensionsString); +#else +#define CALLBACK #endif #endif -- cgit v1.2.3-70-g09d2