aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-05-06 15:43:54 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-05-06 15:43:54 +0000
commit09c9d37c5f20c98e7d560dc14046c101ef3f9d27 (patch)
treed2da5b42bf2ecc91dc2720db357e0978012ac054 /src/include
parent2018467e596bdade28b1a468cd1c6e4bcf5d33ef (diff)
add #ifndef include guards to a bunch of files, even though they shouldn't
be necessary (I never include a file twice!)... since certain lame/broken/dumb compilers (like DEC/Compaq/HP/whatever-they-call-themselves-this-week C++ version 6.something on Alpha Linux) still give multiple inclusions even with automagic template instantiation turned off :( :( :( -- thanks to Frank Loeffler for helping track this problem down! git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1050 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/include')
-rw-r--r--src/include/config.h5
-rw-r--r--src/include/fake_cctk.h5
-rw-r--r--src/include/stdc.h9
3 files changed, 14 insertions, 5 deletions
diff --git a/src/include/config.h b/src/include/config.h
index e761015..f5312fd 100644
--- a/src/include/config.h
+++ b/src/include/config.h
@@ -1,6 +1,9 @@
/* config.h -- compile-time configuration for AHFinderDirect */
/* $Header$ */
+#ifndef AHFINDERDIRECT__CONFIG_H
+#define AHFINDERDIRECT__CONFIG_H
+
/*
* This header file is #included by C++ and C files, and also by
* Fortran 77 files which are run through a C-like preprocessor. Alas,
@@ -97,3 +100,5 @@ typedef CCTK_INT integer;
#ifdef HAVE_ROW_SPARSE_JACOBIAN__ILUCG
#define HAVE_ROW_SPARSE_JACOBIAN
#endif
+
+#endif /* AHFINDERDIRECT__CONFIG_H */
diff --git a/src/include/fake_cctk.h b/src/include/fake_cctk.h
index 9c33a96..d294c66 100644
--- a/src/include/fake_cctk.h
+++ b/src/include/fake_cctk.h
@@ -1,6 +1,11 @@
/* fake_cctk.h -- fake "cctk.h" for non-Cactus standalone compilations */
/* $Header$ */
+#ifndef AHFINDERDIRECT__FAKE_CCTK_H
+#define AHFINDERDIRECT__FAKE_CCTK_H
+
#define CCODE
typedef int CCTK_INT;
typedef double CCTK_REAL;
+
+#endif /* AHFINDERDIRECT__FAKE_CCTK_H */
diff --git a/src/include/stdc.h b/src/include/stdc.h
index 872c012..7a3ad4d 100644
--- a/src/include/stdc.h
+++ b/src/include/stdc.h
@@ -1,14 +1,13 @@
/* stdc.h -- JT standard C/C++ header file, cut-down for modern code only */
/* $Header$ */
+#ifndef AHFINDERDIRECT__STDC_H
+#define AHFINDERDIRECT__STDC_H
+
/*
* ***** THIS VERSION IS FOR ANSI/ISO C AND C++ *****
*/
-/* this header file is idempotent */
-#ifndef STDC_H_SEEN
-#define STDC_H_SEEN
-
/******************************************************************************/
/*
@@ -93,4 +92,4 @@ int error_exit(int msg_level, const char *format, ...)
/******************************************************************************/
-#endif /* STDC_H_SEEN */
+#endif /* AHFINDERDIRECT__STDC_H */