aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/BinaryInput.cpp
diff options
context:
space:
mode:
authorShauren <none@none>2010-08-27 13:22:05 +0200
committerShauren <none@none>2010-08-27 13:22:05 +0200
commite2dc4c3a66a53109616bff726bb4f4e198af580b (patch)
treec970751acd0fc7a71b45771c1b043932e322753f /dep/g3dlite/source/BinaryInput.cpp
parent9cf892b8f239a6ab8b8b61e98ae07322d09b334b (diff)
Core/Dep: More hacking on g3d library (updated .diff) should now build on windows
--HG-- branch : trunk
Diffstat (limited to 'dep/g3dlite/source/BinaryInput.cpp')
-rw-r--r--dep/g3dlite/source/BinaryInput.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/dep/g3dlite/source/BinaryInput.cpp b/dep/g3dlite/source/BinaryInput.cpp
index c879715c3f0..19ab2722c5c 100644
--- a/dep/g3dlite/source/BinaryInput.cpp
+++ b/dep/g3dlite/source/BinaryInput.cpp
@@ -39,7 +39,9 @@
#include "G3D/Log.h"
#include "G3D/FileSystem.h"
#include <zlib.h>
-#include "zip.h"
+#if _HAVE_ZIP /* G3DFIX: Use ZIP-library only if defined */
+ #include "zip.h"
+#endif
#include <cstring>
namespace G3D {
@@ -273,6 +275,7 @@ BinaryInput::BinaryInput(
_internal::currentFilesUsed.insert(m_filename);
+#if _HAVE_ZIP /* G3DFIX: Use ZIP-library only if defined */
std::string zipfile;
if (FileSystem::inZipfile(m_filename, zipfile)) {
// Load from zipfile
@@ -304,6 +307,7 @@ BinaryInput::BinaryInput(
m_freeBuffer = true;
return;
}
+#endif
// Figure out how big the file is and verify that it exists.
m_length = FileSystem::size(m_filename);