From: Jens Vollinga Date: Sun, 4 Oct 2009 20:15:13 +0000 (+0200) Subject: Moved header includes to source files to avoid polluting the namespace X-Git-Tag: release_1-5-4~2^2 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=9fb17531da05d2959decc3856d03c71c0220b116 Moved header includes to source files to avoid polluting the namespace for library users. --- diff --git a/ginac/parser/default_reader.tpl b/ginac/parser/default_reader.tpl index e65802a4..ae36dde0 100644 --- a/ginac/parser/default_reader.tpl +++ b/ginac/parser/default_reader.tpl @@ -19,6 +19,13 @@ COMMENT a part of GiNaC parser -- construct functions from a byte stream. #include "power.h" #include "operators.h" #include "inifcns.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef HAVE_STDINT_H +#include // for uintptr_t +#endif namespace GiNaC { diff --git a/ginac/parser/parse_context.h b/ginac/parser/parse_context.h index 55e07d11..13fc166a 100644 --- a/ginac/parser/parse_context.h +++ b/ginac/parser/parse_context.h @@ -30,12 +30,6 @@ #include #include #include -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif -#ifdef HAVE_STDINT_H -#include // for uintptr_t -#endif namespace GiNaC { diff --git a/ginac/parser/parser.cpp b/ginac/parser/parser.cpp index acf5f3d0..2e2c9e6c 100644 --- a/ginac/parser/parser.cpp +++ b/ginac/parser/parser.cpp @@ -26,7 +26,13 @@ #include "mul.h" #include "constant.h" #include "function.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#ifdef HAVE_STDINT_H +#include // for uintptr_t +#endif #include #include