some fixes for WINAPI

This commit is contained in:
Chris Ison 2001-10-21 21:23:45 +00:00
parent 7af90743f7
commit e69ade675e
2 changed files with 16 additions and 5 deletions

View file

@ -33,11 +33,18 @@
#include "QF/GL/defines.h"
#include "QF/GL/types.h"
#ifdef _WIN32
# include <windows.h>
# define GLAPIENTRY WINAPI
#else
# define GLAPIENTRY
// Define GLAPIENTRY to a useful value
#ifndef GLAPIENTRY
# ifdef _WIN32
# include <windows.h>
# define GLAPIENTRY WINAPI
# else
# ifdef APIENTRY
# define GLAPIENTRY APIENTRY
# else
# define GLAPIENTRY
# endif
# endif
#endif
// OpenGL numbers for extensions we use or want to use

View file

@ -33,6 +33,10 @@
#include "QF/GL/types.h"
#include "QF/qtypes.h"
#ifdef _WIN32
# include <windows.h>
#endif
#define QFGL_NEED(ret, name, args) extern ret (GLAPIENTRY * qf##name) args
#include "QF/GL/qf_funcs_list.h"
#undef QFGL_NEED