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/openbsd | |
| 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/openbsd')
| -rw-r--r-- | pkg/openbsd/gen.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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', |
