Skip to content

Commit

Permalink
added C++ compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jytang committed Apr 11, 2016
1 parent 28d884b commit 453f0f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/p3dfft.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#define FORTNAME(NAME) NAME##_

#elif defined PGI
#elif defined PGI

/* #define FORT_MOD_NAME(NAME) p3dfft_##NAME##_ */

Expand All @@ -51,6 +51,10 @@

#endif

#ifdef __cplusplus
extern "C"
{
#endif

extern void FORT_MOD_NAME(p3dfft_setup)(int *dims,int *nx,int *ny,int *nz, int * comm, int *nxc, int *nyc, int *nzc, int *ow, int *memsize);
extern void FORT_MOD_NAME(p3dfft_get_dims)(int *,int *,int *,int *);
Expand Down Expand Up @@ -136,3 +140,6 @@ inline void Cp3dfft_btran_c2r(float *A,float *B, unsigned char *op)
}
#endif

#ifdef __cplusplus
}
#endif

0 comments on commit 453f0f9

Please sign in to comment.