]> www.ginac.de Git - ginac.git/blobdiff - ginac/utils.h
#ifndef around namespace GiNaC { }
[ginac.git] / ginac / utils.h
index 814654c65563b65c8a0b81009fee94c330526429..18a5e7bd3f86c85c17216ec9ef20793546244fcf 100644 (file)
@@ -28,7 +28,9 @@
 #include "config.h"
 #include "assertion.h"
 
+#ifndef NO_GINAC_NAMESPACE
 namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
 
 template<class T>
 string ToString(T const & t)
@@ -53,7 +55,7 @@ inline unsigned rotate_left_31(unsigned n)
     if (n & 0x80000000U) {
         n=(n & 0x7FFFFFFFU) | 0x00000001U;
     }
-    ASSERT(n<0x80000000U);
+    GINAC_ASSERT(n<0x80000000U);
 
     return n;
 }
@@ -131,6 +133,8 @@ OutputIterator mymerge3(InputIterator1 first1, InputIterator1 last1,
   }
 }
 
+#ifndef NO_GINAC_NAMESPACE
 } // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
 
 #endif // ndef __GINAC_UTILS_H__