Compile fixes for latest VRPN and TIFF

This commit is contained in:
rdb 2016-04-22 17:18:27 +02:00
parent bffe3bf55a
commit 2c1cb4c313
3 changed files with 14 additions and 1 deletions

View File

@ -2,3 +2,4 @@
struct timeval;
struct fd_set;
struct timezone;

View File

@ -599,8 +599,12 @@ if (COMPILER == "MSVC"):
LibName("PNG", GetThirdpartyDir() + "png/lib/libpng16_static.lib")
else:
LibName("PNG", GetThirdpartyDir() + "png/lib/libpng_static.lib")
if (PkgSkip("TIFF")==0):
if os.path.isfile(GetThirdpartyDir() + "tiff/lib/libtiff.lib"):
LibName("TIFF", GetThirdpartyDir() + "tiff/lib/libtiff.lib")
else:
LibName("TIFF", GetThirdpartyDir() + "tiff/lib/tiff.lib")
if (PkgSkip("JPEG")==0): LibName("JPEG", GetThirdpartyDir() + "jpeg/lib/jpeg-static.lib")
if (PkgSkip("TIFF")==0): LibName("TIFF", GetThirdpartyDir() + "tiff/lib/libtiff.lib")
if (PkgSkip("ZLIB")==0): LibName("ZLIB", GetThirdpartyDir() + "zlib/lib/zlibstatic.lib")
if (PkgSkip("VRPN")==0): LibName("VRPN", GetThirdpartyDir() + "vrpn/lib/vrpn.lib")
if (PkgSkip("VRPN")==0): LibName("VRPN", GetThirdpartyDir() + "vrpn/lib/quat.lib")

View File

@ -27,6 +27,14 @@
#endif
#endif
// VPRN misses an include to this in vrpn_Shared.h.
#include <stdint.h>
// Prevent VRPN from defining this function, which we don't need,
// and cause compilation errors in MSVC 2015.
#include "vrpn_Configure.h"
#undef VRPN_EXPORT_GETTIMEOFDAY
#include "vrpn_Connection.h"
#include "vrpn_Tracker.h"
#include "vrpn_Analog.h"