Add missing header which trips some compilers
#include <stdio.h>
#include <cassert>
+#include <cstring>
#if ASTCENC_SIMD_WIDTH <= 4
#define ANGULAR_STEPS 44
@@ -138,8 +139,8 @@ static void compute_angular_offsets(
) {
alignas(ASTCENC_VECALIGN) float anglesum_x[ANGULAR_STEPS];
alignas(ASTCENC_VECALIGN) float anglesum_y[ANGULAR_STEPS];
- memset(anglesum_x, 0, max_angular_steps*sizeof(anglesum_x[0]));
- memset(anglesum_y, 0, max_angular_steps*sizeof(anglesum_y[0]));
+ std::memset(anglesum_x, 0, max_angular_steps*sizeof(anglesum_x[0]));
+ std::memset(anglesum_y, 0, max_angular_steps*sizeof(anglesum_y[0]));
// compute the angle-sums.
for (int i = 0; i < samplecount; i++)
