diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-27 14:33:43 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-06-27 14:33:51 -0700 |
| commit | fe0aae18e5024fc8027846fcec45fb5f1b7a11c9 (patch) | |
| tree | f60557ddb76946e1f6846aab484177315278bdf8 /pkg | |
| parent | 2427b8fd2f5f3dd65005f98adab18915e7afd294 (diff) | |
Use no-op static assert for defining away macros
Empty top-level declarations aren't allowed in ISO C.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/libressl/gen.lua | 2 | ||||
| -rw-r--r-- | pkg/openbsd/gen.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/libressl/gen.lua b/pkg/libressl/gen.lua index 7551b34b..ac3a2609 100644 --- a/pkg/libressl/gen.lua +++ b/pkg/libressl/gen.lua @@ -5,7 +5,7 @@ cflags{ '-D OPENSSL_NO_ASM', '-D __BEGIN_HIDDEN_DECLS=', '-D __END_HIDDEN_DECLS=', - [[-D '__warn_references(sym,msg)=']], + [[-D '__warn_references(sym,msg)=_Static_assert(1, "")']], '-I $srcdir/include', '-I $srcdir/crypto', '-I $srcdir/crypto/asn1', diff --git a/pkg/openbsd/gen.lua b/pkg/openbsd/gen.lua index be733533..8af8801e 100644 --- a/pkg/openbsd/gen.lua +++ b/pkg/openbsd/gen.lua @@ -1,5 +1,5 @@ cflags{ - [[-D 'DEF_WEAK(n)=']], + [[-D 'DEF_WEAK(n)=_Static_assert(1, "")']], '-I $dir/include', '-idirafter $srcdir/include', '-idirafter $srcdir/sys', |
