From f85c6119a0e27c84120617559d743509c4d478da Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 16 Mar 2001 16:00:18 +0000 Subject: Declared routines' prototypes to be extern "C". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@48 10716dce-81a3-4424-a2c8-48026a0d3035 --- src/NewPUGHSlab.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/NewPUGHSlab.h b/src/NewPUGHSlab.h index a61c611..a1f1167 100644 --- a/src/NewPUGHSlab.h +++ b/src/NewPUGHSlab.h @@ -10,6 +10,15 @@ @@*/ +#ifndef _PUGHSLAB_PUGHSLAB_H_ +#define _PUGHSLAB_PUGHSLAB_H_ + +#ifdef __cplusplus +extern "C" +{ +#endif + + /* prototype of datatype conversion routines */ typedef void (*PUGHSlab_conversion_fn) (void *hdata, void *vdata, @@ -46,3 +55,10 @@ int NewHyperslab_GetHyperslab (cGH *GH, int hsize[/* hdim */]); PUGHSlab_conversion_fn PUGHSlab_GetDatatypeConversionFn (int vtype, int htype); + + +#ifdef __cplusplus +} +#endif + +#endif /* _PUGHSLAB_PUGHSLAB_H_ */ -- cgit v1.2.3