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:
ikits 2003-02-21 18:48:08 +00:00
parent ee2dc7fa62
commit b68d2be9ad
3 changed files with 5 additions and 3 deletions

View File

@ -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" {

View File

@ -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 */

View File

@ -94,6 +94,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <GL/glew.h>
#include <GL/glut.h>
#include <GL/wglew.h>