From 3bc1e19932ae273377fd25ae9975ce1d9c3f565b Mon Sep 17 00:00:00 2001 From: June 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(-) (limited to 'bin') diff --git a/bin/glitch.c b/bin/glitch.c index 536b35e1..e97ffce4 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 17f2daa8..6c74297c 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 et' action='/src/log/bin/fbclock.c'>
Commit message (Expand)Author
2019-02-27Fix make target pattern whitespace in hiJune McEnroe
2019-02-27Delete extraneous <pre> in html.shJune McEnroe
2019-02-24Use setopt in upJune McEnroe
2019-02-24Add setoptJune McEnroe
2019-02-20Match make targets as TagJune McEnroe
2019-02-20Use $PWD in html.sh to pass absolute path to manJune McEnroe
2019-02-20Factor out html.sh and produce html for all sourcesJune McEnroe
2019-02-20Add Dirk Gently's Holistic Detective AgencyJune McEnroe
2019-02-20Move /opt/pkg after /usr in PATHJune McEnroe
2019-02-20Set man_hard_wrap in nvimJune McEnroe
2019-02-18Use hi -o anchor in upJune McEnroe
2019-02-18Don't match nested parentheses in Tag for CJune McEnroe
2019-02-18Match whitespace between * [] {}June McEnroe
2019-02-18Fix function-like #define regexJune McEnroe
2019-02-18Match Tag in RustJune McEnroe
2019-02-18Match sh functions as TagJune McEnroe
2019-02-18Match Sh and Ss as Tag in mdocJune McEnroe
2019-02-18Match statics and typedefs as TagJune McEnroe
2019-02-18Clean up htmlHeaderJune McEnroe
2019-02-18Remove hi line numberingJune McEnroe
2019-02-18Add Tag class to hiJune McEnroe
2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe
2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe
2019-02-17Simplify temp trap in upJune McEnroe
2019-02-17Add line numbers to hiJune McEnroe
2019-02-17Always split spans after newlinesJune McEnroe
2019-02-15Color format specifiers light cyan in vimJune McEnroe
2019-02-15Highlight Interp as yellowJune McEnroe
2019-02-15Highlight strings in sh command substitutionsJune McEnroe
2019-02-15Add nmap gpJune McEnroe
2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe
2019-02-13Add forgotten "sixth" book of H2G2June McEnroe