From ae40b2b351ea71ccbe203f71f596cc993dd60c56 Mon Sep 17 00:00:00 2001 From: rhaas Date: Thu, 3 Dec 2009 16:30:15 +0000 Subject: add namespace in slab.cc and slab.h in such a way as to make the PGI compiler on Kraken compile the code git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@69 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8 --- src/slab.cc | 3 +++ src/slab.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/slab.cc b/src/slab.cc index 17ddb0c..881278c 100644 --- a/src/slab.cc +++ b/src/slab.cc @@ -54,6 +54,8 @@ using namespace std; +namespace Slab +{ #ifdef DEBUG # define ifdebug @@ -1777,3 +1779,4 @@ Slab_Transfer (cGH const * restrict const cctkGH, return Slab_MultiTransfer (cctkGH, dim, xferinfo, options, nvars, srctypes, srcptrs, dsttypes, dstptrs); } +} diff --git a/src/slab.h b/src/slab.h index 7c02cce..97e10ab 100644 --- a/src/slab.h +++ b/src/slab.h @@ -4,6 +4,8 @@ #define SLAB_H #ifdef __cplusplus +namespace Slab +{ extern "C" { #endif @@ -122,7 +124,8 @@ Slab_MultiTransfer (cGH const * CCTK_RESTRICT void * CCTK_RESTRICT const * CCTK_RESTRICT const dstptrs); #ifdef __cplusplus -} +} /* extern "C" */ +} /* namespace Slab */ #endif #endif /* defined SLAB_H */ -- cgit v1.2.3