diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-03-22 01:16:23 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-03-22 01:16:23 +0000 |
commit | 28f602063adcc6e7ec2e0b333eb46016cb323d97 (patch) | |
tree | f9f9f55a4cb7e84f5ea294327bd005fdc3f08352 /src | |
parent | 11512862c8874998d48da5e380a46fb3a163eb81 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/include/cctk.h | 11 |
1 files changed, 10 insertions, 1 deletions
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); |