[GiNaC-devel] [PATCH] fix broken perprocessor instruction, so GiNaC compiles when ! HAVE_LIBDL.

Alexei Sheplyakov varg at theor.jinr.ru
Tue Nov 6 16:52:47 CET 2007


Hi!

I've tried to build GiNaC 1.4 on my ReactOS box, it failed due to broken
preprocessor instruction in excomplier.cpp. The patch below fixes it.

---
 ginac/excompiler.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ginac/excompiler.cpp b/ginac/excompiler.cpp
index fe96123..4cf2841 100644
--- a/ginac/excompiler.cpp
+++ b/ginac/excompiler.cpp
@@ -32,7 +32,9 @@
 #include <string>
 #include <vector>
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #ifdef HAVE_LIBDL
 #include <dlfcn.h>
@@ -302,7 +304,7 @@ void unlink_ex(const std::string filename)
 	global_excompiler.unlink(filename);
 }
 
-#elif // def HAVE_LIBDL
+#else // def HAVE_LIBDL
 
 /*
  * In case no working libdl has been found by configure, the following function
-- 
1.5.3.2


-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20071106/11cab886/attachment.pgp


More information about the GiNaC-devel mailing list