Skip to content

Commit

Permalink
Include <cstddef> for std::nullptr_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jul 30, 2024
1 parent e1bbff2 commit ac40de3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/libdivide.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,25 @@
#define LIBDIVIDE_VERSION_MINOR 0

#include <stdint.h>

#if !defined(__AVR__)
#include <stdio.h>
#include <stdlib.h>
#endif

#ifdef __cplusplus
// Required for std::nullptr_t
#include <cstddef>
#endif

#if defined(LIBDIVIDE_SSE2)
#include <emmintrin.h>
#endif

#if defined(LIBDIVIDE_AVX2) || defined(LIBDIVIDE_AVX512)
#include <immintrin.h>
#endif

#if defined(LIBDIVIDE_NEON)
#include <arm_neon.h>
#endif
Expand Down

0 comments on commit ac40de3

Please sign in to comment.