Fixed definition tests for optional LibOVR
This commit is contained in:
parent
1a397ec068
commit
db58b68330
3 changed files with 7 additions and 7 deletions
|
@ -44,7 +44,7 @@
|
||||||
#ifndef NL3D_STEREO_OVR_H
|
#ifndef NL3D_STEREO_OVR_H
|
||||||
#define NL3D_STEREO_OVR_H
|
#define NL3D_STEREO_OVR_H
|
||||||
|
|
||||||
#ifdef WITH_LIBOVR
|
#ifdef HAVE_LIBOVR
|
||||||
|
|
||||||
#include <nel/misc/types_nl.h>
|
#include <nel/misc/types_nl.h>
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ private:
|
||||||
|
|
||||||
} /* namespace NL3D */
|
} /* namespace NL3D */
|
||||||
|
|
||||||
#endif /* WITH_LIBOVR */
|
#endif /* HAVE_LIBOVR */
|
||||||
|
|
||||||
#endif /* #ifndef NL3D_STEREO_OVR_H */
|
#endif /* #ifndef NL3D_STEREO_OVR_H */
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ const char *IStereoDisplay::getLibraryName(CStereoDeviceInfo::TStereoDeviceLibra
|
||||||
|
|
||||||
void IStereoDisplay::listDevices(std::vector<CStereoDeviceInfo> &devicesOut)
|
void IStereoDisplay::listDevices(std::vector<CStereoDeviceInfo> &devicesOut)
|
||||||
{
|
{
|
||||||
#ifdef WITH_LIBOVR
|
#ifdef HAVE_LIBOVR
|
||||||
CStereoOVR::listDevices(devicesOut);
|
CStereoOVR::listDevices(devicesOut);
|
||||||
#endif
|
#endif
|
||||||
#if !FINAL_VERSION
|
#if !FINAL_VERSION
|
||||||
|
@ -90,7 +90,7 @@ IStereoDisplay *IStereoDisplay::createDevice(const CStereoDeviceInfo &deviceInfo
|
||||||
|
|
||||||
void IStereoDisplay::releaseUnusedLibraries()
|
void IStereoDisplay::releaseUnusedLibraries()
|
||||||
{
|
{
|
||||||
#ifdef WITH_LIBOVR
|
#ifdef HAVE_LIBOVR
|
||||||
if (!CStereoOVR::isLibraryInUse())
|
if (!CStereoOVR::isLibraryInUse())
|
||||||
CStereoOVR::releaseLibrary();
|
CStereoOVR::releaseLibrary();
|
||||||
#endif
|
#endif
|
||||||
|
@ -98,7 +98,7 @@ void IStereoDisplay::releaseUnusedLibraries()
|
||||||
|
|
||||||
void IStereoDisplay::releaseAllLibraries()
|
void IStereoDisplay::releaseAllLibraries()
|
||||||
{
|
{
|
||||||
#ifdef WITH_LIBOVR
|
#ifdef HAVE_LIBOVR
|
||||||
CStereoOVR::releaseLibrary();
|
CStereoOVR::releaseLibrary();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
* so, delete this exception statement from your version.
|
* so, delete this exception statement from your version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef WITH_LIBOVR
|
#ifdef HAVE_LIBOVR
|
||||||
|
|
||||||
#include <nel/misc/types_nl.h>
|
#include <nel/misc/types_nl.h>
|
||||||
#include <nel/3d/stereo_ovr.h>
|
#include <nel/3d/stereo_ovr.h>
|
||||||
|
@ -738,6 +738,6 @@ bool CStereoOVR::isDeviceCreated()
|
||||||
|
|
||||||
} /* namespace NL3D */
|
} /* namespace NL3D */
|
||||||
|
|
||||||
#endif /* WITH_LIBOVR */
|
#endif /* HAVE_LIBOVR */
|
||||||
|
|
||||||
/* end of file */
|
/* end of file */
|
||||||
|
|
Loading…
Reference in a new issue