goat3dgfx

diff src/vr/vr_impl.h @ 25:6236080aaea4

LIBOVR conditional compilation fix
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 27 Feb 2014 01:40:12 +0200
parents 7d6b667821cf
children
line diff
     1.1 --- a/src/vr/vr_impl.h	Tue Feb 25 23:47:48 2014 +0200
     1.2 +++ b/src/vr/vr_impl.h	Thu Feb 27 01:40:12 2014 +0200
     1.3 @@ -1,15 +1,21 @@
     1.4  #ifndef VR_IMPL_H_
     1.5  #define VR_IMPL_H_
     1.6  
     1.7 +#include "config.h"
     1.8 +
     1.9 +#ifdef USE_LIBOVR
    1.10  #include <OVR.h>
    1.11  
    1.12  using namespace OVR;
    1.13 +#endif
    1.14  
    1.15  struct VRContext {
    1.16 +#ifdef USE_LIBOVR
    1.17  	DeviceManager *ovr_devman;
    1.18  	HMDDevice *ovr_hmd_dev;
    1.19  	SensorDevice *ovr_sensor_dev;
    1.20  	SensorFusion *ovr_sfusion;
    1.21 +#endif
    1.22  
    1.23  	struct {
    1.24  		char *display;