From 9fb17531da05d2959decc3856d03c71c0220b116 Mon Sep 17 00:00:00 2001 From: Jens Vollinga Date: Sun, 4 Oct 2009 22:15:13 +0200 Subject: [PATCH] Moved header includes to source files to avoid polluting the namespace for library users. --- ginac/parser/default_reader.tpl | 7 +++++++ ginac/parser/parse_context.h | 6 ------ ginac/parser/parser.cpp | 6 ++++++ 3 files changed, 13 insertions(+), 6 deletions(-) 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 -- 2.44.0