diff options
-rw-r--r-- | src/include/cctk.h | 1 | ||||
-rw-r--r-- | src/include/cctk_WarnLevel.h | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/include/cctk.h b/src/include/cctk.h index a79a53a6..e9bc52af 100644 --- a/src/include/cctk.h +++ b/src/include/cctk.h @@ -28,6 +28,7 @@ #include "cctk_Faces.h" #include "cctk_Interp.h" +#include "cctk_WarnLevel.h" #define CCTK_PRINTSEPARATOR\ print '("--------------------------------------------------------------------------------")' diff --git a/src/include/cctk_WarnLevel.h b/src/include/cctk_WarnLevel.h index a0eaeaa7..a9956e3e 100644 --- a/src/include/cctk_WarnLevel.h +++ b/src/include/cctk_WarnLevel.h @@ -11,6 +11,8 @@ #ifndef _CCTK_WARNLEVEL_H_ #define _CCTK_WARNLEVEL_H_ +#ifdef CCODE + #ifdef __cplusplus extern "C" { @@ -49,6 +51,8 @@ __attribute__ ((format (printf, 2, 3))) } #endif +#endif /* CCODE */ + /* suggested values for warning levels (courtesy of Steve, PR#1742) */ #define CCTK_WARN_ABORT 0 /* abort the Cactus run */ #define CCTK_WARN_ALERT 1 /* the results of this run will be wrong, */ @@ -63,4 +67,4 @@ __attribute__ ((format (printf, 2, 3))) #define CCTK_WARN_DEBUG 4 /* these messages are probably useful */ /* only for debugging purposes */ -#endif +#endif /* ! _CCTK_WARNLEVEL_H_ */ |