From 01631d5047450150beb3dcadb2fc3a8bfbda9a0d Mon Sep 17 00:00:00 2001
From: Eric Bechet <eric.bechet@ulg.ac.be>
Date: Fri, 19 Nov 2010 10:35:16 +0000
Subject: [PATCH] missing #if define(HAVE_LUA) ...

---
 Geo/GModelIO_Mesh.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp
index 1b03e1e0af..ac22b7bd05 100644
--- a/Geo/GModelIO_Mesh.cpp
+++ b/Geo/GModelIO_Mesh.cpp
@@ -3215,8 +3215,12 @@ int GModel::readDIFF(const std::string &name)
 }
 int GModel::readLUA(const std::string &name)
 {
+#if defined(HAVE_LUA)
 	int status = binding::instance()->readFile(name.c_str());
 	return status;
+#else
+	return 0;
+#endif
 }
 int GModel::writeDIFF(const std::string &name, bool binary, bool saveAll,
                       double scalingFactor)
-- 
GitLab