Skip to content

Commit

Permalink
Patched finderrors to build on Linux again.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 22, 2008
1 parent a4780c8 commit 1aa7e5d
Show file tree
Hide file tree
Showing 4 changed files with 8,841 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -13,10 +13,11 @@ IF(SDL_FOUND)
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
IF(APPLE)
ADD_DEFINITIONS(-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers)
FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
MARK_AS_ADVANCED(OPENGL_LIBRARY)
SET(EXTRA_LIBS ${OPENGL_LIBRARY})
ELSE(APPLE)
SET(EXTRA_LIBS GL)
ENDIF(APPLE)
ENDIF(SDL_FOUND)

Expand Down
5 changes: 3 additions & 2 deletions finderrors.c
Expand Up @@ -12,9 +12,10 @@
#define FINDERRORS_COMPILE_SHADERS 1

#if FINDERRORS_COMPILE_SHADERS
#define GL_GLEXT_PROTOTYPES 1
#include "SDL.h"
#include <gl.h>
#include <glext.h>
#include "gl.h"
#include "glext.h"
#endif

#define report printf
Expand Down

0 comments on commit 1aa7e5d

Please sign in to comment.