- Changed policy: look for cln/cln.h instead of CLN/cln.h, reflecting an
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Wed, 19 Jan 2000 23:51:21 +0000 (23:51 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Wed, 19 Jan 2000 23:51:21 +0000 (23:51 +0000)
  agreement with Bruno Haible.
- Don't #include <cln/cln.h> but only those headers necessary for GiNaC.

ginac/numeric.cpp

index dd6a1ebc310593a4627267caccc8e722bd485d79..c23d46a2408700b83b78fd541c59b516cd0091b6 100644 (file)
 #include "utils.h"
 
 // CLN should not pollute the global namespace, hence we include it here
 #include "utils.h"
 
 // CLN should not pollute the global namespace, hence we include it here
-// instead of in some header file where it would propagate to other parts:
+// instead of in some header file where it would propagate to other parts.
+// Also, we only need a subset of CLN, so we don't include the complete cln.h:
 #ifdef HAVE_CLN_CLN_H
 #ifdef HAVE_CLN_CLN_H
-#include <CLN/cln.h>
+#include <cln/cl_integer_io.h>
+#include <cln/cl_integer_ring.h>
+#include <cln/cl_rational_io.h>
+#include <cln/cl_rational_ring.h>
+#include <cln/cl_lfloat_class.h>
+#include <cln/cl_lfloat_io.h>
+#include <cln/cl_real_io.h>
+#include <cln/cl_real_ring.h>
+#include <cln/cl_complex_io.h>
+#include <cln/cl_complex_ring.h>
+#include <cln/cl_numtheory.h>
 #else
 #else
-#include <cln.h>
+#include <cl_integer_io.h>
+#include <cl_integer_ring.h>
+#include <cl_rational_io.h>
+#include <cl_rational_ring.h>
+#include <cl_lfloat_class.h>
+#include <cl_lfloat_io.h>
+#include <cl_real_io.h>
+#include <cl_real_ring.h>
+#include <cl_complex_io.h>
+#include <cl_complex_ring.h>
+#include <cl_numtheory.h>
 #endif
 
 #ifndef NO_GINAC_NAMESPACE
 #endif
 
 #ifndef NO_GINAC_NAMESPACE