mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +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 GLEW_EXPORT
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
||||
/* <glu.h> */
|
||||
#define GLAPI extern
|
||||
#define GLAPIENTRY
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -3365,7 +3365,7 @@ GLboolean glewExperimental = GL_FALSE;
|
||||
GLint glewInit ()
|
||||
{
|
||||
GLint r;
|
||||
if (r = _glewInit()) return r;
|
||||
if ( (r = _glewInit()) ) return r;
|
||||
#ifdef _WIN32
|
||||
return _wglewInit();
|
||||
#else /* _UNIX */
|
||||
|
@ -94,6 +94,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <GL/glew.h>
|
||||
#include <GL/glut.h>
|
||||
#include <GL/wglew.h>
|
||||
|
Loading…
Reference in New Issue
Block a user