diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 0000000..6bd850c --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,12 @@ +extraction: + cpp: + prepare: + packages: + - "build-essential" + - "libxmu-dev" + - "libxi-dev" + - "libgl-dev" + index: + build_command: + - "cd auto; make all -j8; cd .." + - "make all -j8" diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c index dbd18f2..832ded7 100644 --- a/auto/src/glew_head.c +++ b/auto/src/glew_head.c @@ -28,7 +28,7 @@ #if defined(GLEW_EGL) #elif defined(GLEW_REGAL) -/* In GLEW_REGAL mode we call direcly into the linked +/* In GLEW_REGAL mode we call directly into the linked libRegal.so glGetProcAddressREGAL for looking up the GL function pointers. */ diff --git a/auto/src/glew_head.h b/auto/src/glew_head.h index ad48840..cfa4007 100644 --- a/auto/src/glew_head.h +++ b/auto/src/glew_head.h @@ -2,7 +2,7 @@ #define __glew_h__ #define __GLEW_H__ -#if defined(__gl_h_) || defined(__GL_H__) || defined(_GL_H) || defined(__X_GL_H) +#if defined(__gl_h_) || defined(__GL_H__) || defined(_GL_H) || defined(__gl_gl_h_) || defined(__X_GL_H) #error gl.h included before glew.h #endif #if defined(__gl2_h_) @@ -25,6 +25,7 @@ #define __gl2_h_ #define __GL_H__ #define _GL_H +#define __gl_gl_h_ #define __gltypes_h_ #define __REGAL_H__ #define __X_GL_H diff --git a/auto/src/glew_init_egl.c b/auto/src/glew_init_egl.c index 784285f..1502ef6 100644 --- a/auto/src/glew_init_egl.c +++ b/auto/src/glew_init_egl.c @@ -25,7 +25,7 @@ GLenum eglewInit (EGLDisplay display) if (!initialize || !queryString) return 1; - /* query EGK version */ + /* query EGL version */ if (initialize(display, &major, &minor) != EGL_TRUE) return 1;