Added extern C to the include headers

This commit is contained in:
jpekkila
2019-07-23 15:02:54 +03:00
parent c0774bc3b8
commit c98e730397
2 changed files with 17 additions and 0 deletions

View File

@@ -18,6 +18,10 @@
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "astaroth_defines.h"
typedef struct {
@@ -208,3 +212,7 @@ acSetParam(const AcReal3Param param, const AcReal3 value, AcMeshInfo* info)
info->real3_params[param] = value;
}
*/
#ifdef __cplusplus
} // extern "C"
#endif

View File

@@ -17,6 +17,11 @@
along with Astaroth. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <float.h> // FLT_EPSILON, etc
#include <stdlib.h> // size_t
#include <vector_types.h> // CUDA vector types (float4, etc)
@@ -110,3 +115,7 @@ extern const char* int3param_names[];
extern const char* realparam_names[];
extern const char* real3param_names[];
extern const char* vtxbuf_names[];
#ifdef __cplusplus
} // extern "C"
#endif