summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-05-07 19:16:59 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-05-07 19:16:59 +0000
commit2ed8a0f3927997d973fdb3f5958c7484d5cd9980 (patch)
tree6c5878addd8cc3202372cb6058d52e2e4885e093 /src
parent315f0d4ff5941c5d937f3dba95ce22758da57f5d (diff)
Protect declarations with external "C"
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4813 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/include/cctk_DebugDefines.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/cctk_DebugDefines.h b/src/include/cctk_DebugDefines.h
index 84926536..91ce074e 100644
--- a/src/include/cctk_DebugDefines.h
+++ b/src/include/cctk_DebugDefines.h
@@ -12,6 +12,13 @@
********************* External Routines **********************
********************************************************************/
+#ifndef _CCTK_DEBUGDEFINES_H_
+#define _CCTK_DEBUGDEFINES_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int CCTK_GFIndex1D (const cGH *GH, int i);
int CCTK_GFIndex2D (const cGH *GH, int i, int j);
int CCTK_GFIndex3D (const cGH *GH, int i, int j, int k);
@@ -21,3 +28,9 @@ int CCTK_VectGFIndex1D (const cGH *GH, int i, int n);
int CCTK_VectGFIndex2D (const cGH *GH, int i, int j, int n);
int CCTK_VectGFIndex3D (const cGH *GH, int i, int j, int k, int n);
int CCTK_VectGFIndex4D (const cGH *GH, int i, int j, int k, int l, int n);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif