From d9e6f6b9af36a5f20a12e39f6f98ba0abe99d996 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 7 Jun 2020 14:40:04 -0400 Subject: Call static_assert by _Static_assert OpenBSD doesn't #define static_assert in assert.h and _Static_assert is its real name I guess so why not? --- bin/glitch.c | 3 +-- bin/pngo.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/glitch.c b/bin/glitch.c index 035dcde5..3d8bc8f7 100644 --- a/bin/glitch.c +++ b/bin/glitch.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include @@ -125,7 +124,7 @@ static struct PACKED { uint8_t filter; uint8_t interlace; } header; -static_assert(13 == sizeof(header), "header size"); +_Static_assert(13 == sizeof(header), "header size"); static size_t pixelBits(void) { switch (header.color) { diff --git a/bin/pngo.c b/bin/pngo.c index 28333248..78738d86 100644 --- a/bin/pngo.c +++ b/bin/pngo.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include @@ -134,7 +133,7 @@ static struct PACKED { enum PACKED { Adaptive } filter; enum PACKED { Progressive, Adam7 } interlace; } header; -static_assert(13 == sizeof(header), "header size"); +_Static_assert(13 == sizeof(header), "header size"); static size_t pixelBits(void) { switch (header.color) { -- cgit 1.4.1