diff --git a/containers/aligned_vector.c b/containers/aligned_vector.c index b6410c4..d6b5f85 100644 --- a/containers/aligned_vector.c +++ b/containers/aligned_vector.c @@ -11,8 +11,6 @@ #include "aligned_vector.h" -#define ALIGNED_VECTOR_INITIAL_CAPACITY 256u - void aligned_vector_init(AlignedVector* vector, unsigned int element_size) { vector->size = vector->capacity = 0; vector->element_size = element_size; diff --git a/containers/aligned_vector.h b/containers/aligned_vector.h index 130d9be..96be736 100644 --- a/containers/aligned_vector.h +++ b/containers/aligned_vector.h @@ -8,6 +8,8 @@ typedef struct { unsigned int element_size; } AlignedVector; +#define ALIGNED_VECTOR_INITIAL_CAPACITY 256u + void aligned_vector_init(AlignedVector* vector, unsigned int element_size); void aligned_vector_reserve(AlignedVector* vector, unsigned int element_count); void aligned_vector_push_back(AlignedVector* vector, const void* objs, unsigned int count);