mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
some fixes for WINAPI
This commit is contained in:
parent
7af90743f7
commit
e69ade675e
2 changed files with 16 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue