osd_opengl.h: fix compile on MSVC 2012 (nw)

This commit is contained in:
Peter Ferrie 2015-03-15 21:06:36 -07:00
parent b685e5264e
commit 366a5b7272

View File

@ -89,16 +89,25 @@
#define OSD_GL(ret,func,params) ret (APIENTRY *func) params;
#define OSD_GL_UNUSED(ret,func,params)
#ifdef _MSC_VER
extern "C" {
#else
{
#endif
struct osd_gl_dispatch
{
#define GET_GLFUNC 1
#include "osd_opengl.h"
#undef GET_GLFUNC
};
}
#undef OSD_GL
#undef OSD_GL_UNUSED
#ifdef _MSC_VER
extern "C" osd_gl_dispatch *gl_dispatch;
#endif
extern osd_gl_dispatch *gl_dispatch;
/*