Changeset 1408

Show
Ignore:
Timestamp:
08/01/08 11:17:57 (4 months ago)
Author:
timdewhirst
Message:

opl
- ensure guards are correct for case when GLEW is not present

Location:
trunk/src/openpluginlib/pl
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/openpluginlib/pl/bind_info.cpp

    r1347 r1408  
    66// For more information, see http://www.openlibraries.org. 
    77 
    8 #include <GL/glew.h> 
    9  
    108#include <openpluginlib/pl/bind_info.hpp> 
    119 
    1210#ifdef HAVE_GL_GLEW_H 
     11 
     12#include <GL/glew.h> 
    1313 
    1414namespace olib { namespace openpluginlib { 
  • trunk/src/openpluginlib/pl/shader_manager.hpp

    r1351 r1408  
    2323#include <boost/shared_ptr.hpp> 
    2424 
     25#include <openpluginlib/pl/config.hpp> 
     26#include <openpluginlib/pl/property.hpp> 
     27 
     28#ifdef HAVE_GL_GLEW_H 
     29 
    2530#include <GL/glew.h> 
    2631 
     
    3035#endif 
    3136 
    32 #include <openpluginlib/pl/config.hpp> 
    33 #include <openpluginlib/pl/property.hpp> 
    34  
    35 #ifdef HAVE_GL_GLEW_H 
    3637 
    3738namespace olib { namespace openpluginlib { 
  • trunk/src/openpluginlib/pl/timer.hpp

    r1347 r1408  
    2626#endif 
    2727 
    28 #include <GL/glew.h> 
    29  
    3028#include <openpluginlib/pl/config.hpp> 
    3129 
     
    294292#endif 
    295293 
     294#ifdef HAVE_GL_GLEW_H 
     295 
     296#include <GL/glew.h> 
     297 
    296298#ifdef GL_EXT_timer_query 
    297299class OPENPLUGINLIB_DECLSPEC gpu_ 
     
    316318        GLuint id_; 
    317319}; 
    318 #endif 
     320#endif // GL_EXT_timer_query 
     321#endif // HAVE_GL_GLEW_H 
    319322 
    320323template<class timer_policy>