From 3c9ee6d1dc3a542accf56e3e80f4c9157115ae41 Mon Sep 17 00:00:00 2001 From: schnetter Date: Sun, 27 Feb 2005 12:08:19 +0000 Subject: Move check for C++ into CCODE section git-svn-id: http://svn.cactuscode.org/flesh/trunk@3995 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/cctk_Interp.h | 13 +++++++------ 1 file 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_ */ -- cgit v1.2.3