]> www.ginac.de Git - ginac.git/blobdiff - ginac/power.h
#ifndef around namespace GiNaC { }
[ginac.git] / ginac / power.h
index 3d9ae57433dbe44c41eeca88aa559e55638651f2..25f4f8d7d8a0e076a014903245cd9c10840f20c2 100644 (file)
@@ -26,7 +26,9 @@
 #include <ginac/basic.h>
 #include <ginac/ex.h>
 
 #include <ginac/basic.h>
 #include <ginac/ex.h>
 
+#ifndef NO_GINAC_NAMESPACE
 namespace GiNaC {
 namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
 
 class numeric;
 class add;
 
 class numeric;
 class add;
@@ -125,6 +127,8 @@ inline ex pow(ex const & b, ex const & e)
 inline ex sqrt(ex const & a)
 { return power(a,exHALF()); }
 
 inline ex sqrt(ex const & a)
 { return power(a,exHALF()); }
 
+#ifndef NO_GINAC_NAMESPACE
 } // namespace GiNaC
 } // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
 
 #endif // ndef __GINAC_POWER_H__
 
 #endif // ndef __GINAC_POWER_H__