From aa73d0bb8e8d0f6a6ec27aeaeee16afbb0bdacb7 Mon Sep 17 00:00:00 2001 From: Marcel Loose <loose@astron.nl> Date: Wed, 20 Oct 2004 12:19:10 +0000 Subject: [PATCH] %[PR: 100]% Changed the template files according to the aforementioned problem report. --- LCS/Common/include/Common/HEADER.h | 2 +- LCS/Common/src/HEADER.cc | 5 +++++ LCS/Common/src/HEADER.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/LCS/Common/include/Common/HEADER.h b/LCS/Common/include/Common/HEADER.h index 99fe79cb9f0..941440a8456 100644 --- a/LCS/Common/include/Common/HEADER.h +++ b/LCS/Common/include/Common/HEADER.h @@ -23,7 +23,7 @@ #ifndef PACKAGE_FILENAME_H #define PACKAGE_FILENAME_H -#include <lofar_config.h> +//# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes #include <otherpackage/file.h> diff --git a/LCS/Common/src/HEADER.cc b/LCS/Common/src/HEADER.cc index 90218f856dd..77052809b3e 100644 --- a/LCS/Common/src/HEADER.cc +++ b/LCS/Common/src/HEADER.cc @@ -20,6 +20,11 @@ //# //# $Id$ +//# Always #include <lofar_config.h> first! +#include <lofar_config.h> + +//# Includes + namespace LOFAR { diff --git a/LCS/Common/src/HEADER.h b/LCS/Common/src/HEADER.h index 99fe79cb9f0..941440a8456 100644 --- a/LCS/Common/src/HEADER.h +++ b/LCS/Common/src/HEADER.h @@ -23,7 +23,7 @@ #ifndef PACKAGE_FILENAME_H #define PACKAGE_FILENAME_H -#include <lofar_config.h> +//# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes #include <otherpackage/file.h> -- GitLab