diff options
Diffstat (limited to 'lib/rawmemchr.c')
-rw-r--r-- | lib/rawmemchr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rawmemchr.c b/lib/rawmemchr.c index ea68c1bfc6a..bdd7307de4b 100644 --- a/lib/rawmemchr.c +++ b/lib/rawmemchr.c @@ -23,10 +23,8 @@ #if !HAVE_RAWMEMCHR # include <limits.h> -# include <stdalign.h> # include <stdint.h> -# include "verify.h" /* Find the first occurrence of C in S. */ void * @@ -36,7 +34,7 @@ rawmemchr (const void *s, int c_in) typedef uintptr_t longword; /* If you change the "uintptr_t", you should change UINTPTR_WIDTH to match. This verifies that the type does not have padding bits. */ - verify (UINTPTR_WIDTH == UCHAR_WIDTH * sizeof (longword)); + static_assert (UINTPTR_WIDTH == UCHAR_WIDTH * sizeof (longword)); const unsigned char *char_ptr; unsigned char c = c_in; |