diff --git a/containers/aligned_vector.h b/containers/aligned_vector.h index 96be736..b5620e5 100644 --- a/containers/aligned_vector.h +++ b/containers/aligned_vector.h @@ -1,6 +1,10 @@ #ifndef ALIGNED_VECTOR_H #define ALIGNED_VECTOR_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { unsigned int size; unsigned int capacity; @@ -20,4 +24,8 @@ void aligned_vector_clear(AlignedVector* vector); void aligned_vector_shrink_to_fit(AlignedVector* vector); void aligned_vector_cleanup(AlignedVector* vector); +#ifdef __cplusplus +} +#endif + #endif // ALIGNED_VECTOR_H diff --git a/containers/named_array.h b/containers/named_array.h index f72dfd2..ecf4d7f 100644 --- a/containers/named_array.h +++ b/containers/named_array.h @@ -1,6 +1,10 @@ #ifndef NAMED_ARRAY_H #define NAMED_ARRAY_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { unsigned int element_size; unsigned int max_element_count; @@ -16,4 +20,8 @@ void named_array_release(NamedArray* array, unsigned int new_id); void* named_array_get(NamedArray* array, unsigned int id); void named_array_cleanup(NamedArray* array); +#ifdef __cplusplus +} +#endif + #endif // NAMED_ARRAY_H diff --git a/containers/stack.h b/containers/stack.h index 12945f6..8f31a60 100644 --- a/containers/stack.h +++ b/containers/stack.h @@ -1,6 +1,10 @@ #ifndef STACK_H #define STACK_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { unsigned char* data; unsigned int capacity; @@ -14,4 +18,8 @@ void* stack_replace(Stack* stack, const void* element); void* stack_push(Stack* stack, const void* element); void stack_pop(Stack* stack); +#ifdef __cplusplus +} +#endif + #endif // STACK_H