Added extern C to the include headers
This commit is contained in:
@@ -18,6 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "astaroth_defines.h"
|
#include "astaroth_defines.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -208,3 +212,7 @@ acSetParam(const AcReal3Param param, const AcReal3 value, AcMeshInfo* info)
|
|||||||
info->real3_params[param] = value;
|
info->real3_params[param] = value;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -17,6 +17,11 @@
|
|||||||
along with Astaroth. If not, see <http://www.gnu.org/licenses/>.
|
along with Astaroth. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <float.h> // FLT_EPSILON, etc
|
#include <float.h> // FLT_EPSILON, etc
|
||||||
#include <stdlib.h> // size_t
|
#include <stdlib.h> // size_t
|
||||||
#include <vector_types.h> // CUDA vector types (float4, etc)
|
#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* realparam_names[];
|
||||||
extern const char* real3param_names[];
|
extern const char* real3param_names[];
|
||||||
extern const char* vtxbuf_names[];
|
extern const char* vtxbuf_names[];
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user