commit 58ae6bebaf390da888afc24444b4b2bb80cb11cd parent d9d9a26e43c18117f8fb2fcd868dc8366bc86b33 Author: Ákos Kovács <akoskovacs0@gmail.com> Date: Wed, 28 Mar 2018 22:58:41 +0200 Don't redefine static_assert, fixes compilation error Diffstat:
M | tools/mkfs.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/mkfs.c b/tools/mkfs.c @@ -11,7 +11,9 @@ #include "../include/stat.h" #include "../include/param.h" -#define static_assert(a, b) do { switch (0) case 0: case (a): ; } while (0) +#ifndef static_assert +# define static_assert(a, b) do { switch (0) case 0: case (a): ; } while (0) +#endif // static_assert int nblocks = 985; int nlog = LOGSIZE;