From 28f602063adcc6e7ec2e0b333eb46016cb323d97 Mon Sep 17 00:00:00 2001 From: allen Date: Mon, 22 Mar 2004 01:16:23 +0000 Subject: Replace #if defined () so that the Cactus CPP will work with flesh. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3592 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/cctk.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/include/cctk.h') diff --git a/src/include/cctk.h b/src/include/cctk.h index 5cbfbdd4..14f4e7fe 100644 --- a/src/include/cctk.h +++ b/src/include/cctk.h @@ -156,7 +156,16 @@ * For CCTK_DEBUG these are external C routines defined in DebugDefines.c. */ -#if defined(__cplusplus) || !defined(inline) +#ifdef __cplusplus +#define HAVE_INLINE +#else +#ifndef inline +#define HAVE_INLINE +#endif +#endif + +#ifdef HAVE_INLINE + /* The "inline" keyword is supported */ static inline int CCTK_GFINDEX1D (const cGH *GH, int i); -- cgit v1.2.3