summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/cctk_Interp.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/include/cctk_Interp.h b/src/include/cctk_Interp.h
index 21eca146..ace23eeb 100644
--- a/src/include/cctk_Interp.h
+++ b/src/include/cctk_Interp.h
@@ -23,13 +23,13 @@
#ifndef _CCTK_INTERP_H_
#define _CCTK_INTERP_H_
+#ifdef CCODE
+
#ifdef __cplusplus
extern "C"
{
#endif
-#ifdef CCODE
-
/*
* typedefs for interpolation operator routines
*/
@@ -88,6 +88,11 @@ int CCTK_InterpLocalUniform (int N_dims,
int N_output_arrays,
const CCTK_INT output_array_type_codes[],
void *const output_arrays[]);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ifdef CCODE */
/*
@@ -116,8 +121,4 @@ int CCTK_InterpLocalUniform (int N_dims,
/* an interpolation point is in (or too close to) an excised region */
#define CCTK_ERROR_INTERP_POINT_EXCISED (-1003)
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _INTERP_H_ */