Ignore:
Timestamp:
Mar 27, 2006, 10:01:27 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Reworked the OpenGL headers and Glut features detection (what did you expect).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_gl.c

    r695 r697  
    2222#if defined(USE_GL)
    2323
    24 #ifndef USE_GLUTCHECKLOOP
    25 #include <GL/gl.h>
    26 #include <GL/glut.h>
    27 #include <GL/freeglut_ext.h>
     24#ifdef HAVE_OPENGL_GL_H
     25#   include <OpenGL/gl.h>
     26#   include <GLUT/glut.h>
    2827#else
    29 /* glutCheckLoop tested only under MacOSX, so using its default headers path */
    30 #include <OpenGL/gl.h>
    31 #include <GLUT/glut.h>
    32 #define glutMainLoopEvent glutCheckLoop
     28#   include <GL/gl.h>
     29#   include <GL/glut.h>
     30#   include <GL/freeglut_ext.h>
     31#endif
     32
     33#ifdef HAVE_GLUTCHECKLOOP
     34#   define glutMainLoopEvent glutCheckLoop
    3335#endif
    3436
Note: See TracChangeset for help on using the changeset viewer.