From 0282f45077126b01b079d1667bb4786a29701a13 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 23 Jul 2019 16:11:17 +0300 Subject: [PATCH] Forgot extern C --- include/astaroth.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/astaroth.h b/include/astaroth.h index a5b84cd..be0081e 100644 --- a/include/astaroth.h +++ b/include/astaroth.h @@ -18,6 +18,10 @@ */ #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #include "astaroth_defines.h" /** Checks whether there are any CUDA devices available. Returns AC_SUCCESS if there is 1 or more, @@ -103,3 +107,7 @@ AcResult acIntegrateStepWithOffsetAsync(const int& isubstep, const AcReal& dt, c /** Performs the boundary condition step on the GPUs in the node. Asynchronous. */ AcResult acBoundcondStep(void); AcResult acBoundcondStepAsync(const StreamType stream); + +#ifdef __cplusplus +} // extern "C" +#endif