mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 08:43:49 +00:00
added linux patch
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@43 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
ee2dc7fa62
commit
b68d2be9ad
@ -154,10 +154,11 @@ typedef unsigned short wchar_t;
|
|||||||
#define APIENTRY
|
#define APIENTRY
|
||||||
#define GLEW_EXPORT
|
#define GLEW_EXPORT
|
||||||
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
/* <glu.h> */
|
/* <glu.h> */
|
||||||
#define GLAPI extern
|
#define GLAPI extern
|
||||||
|
#define GLAPIENTRY
|
||||||
|
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -3365,7 +3365,7 @@ GLboolean glewExperimental = GL_FALSE;
|
|||||||
GLint glewInit ()
|
GLint glewInit ()
|
||||||
{
|
{
|
||||||
GLint r;
|
GLint r;
|
||||||
if (r = _glewInit()) return r;
|
if ( (r = _glewInit()) ) return r;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return _wglewInit();
|
return _wglewInit();
|
||||||
#else /* _UNIX */
|
#else /* _UNIX */
|
||||||
|
@ -94,6 +94,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <GL/wglew.h>
|
#include <GL/wglew.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user