diff src/tools/mkfs.c @ 22:397e74cbf14e

fix warnings
author mir3636
date Sat, 07 Apr 2018 19:05:00 +0900
parents 83c23a36980d
children 624fe2ec975c
line wrap: on
line diff
--- a/src/tools/mkfs.c	Sat Apr 07 18:44:18 2018 +0900
+++ b/src/tools/mkfs.c	Sat Apr 07 19:05:00 2018 +0900
@@ -10,8 +10,9 @@
 #include "fs.h"
 #include "stat.h"
 #include "param.h"
-
+#ifndef static_assert
 #define static_assert(a, b) do { switch (0) case 0: case (a): ; } while (0)
+#endif
 
 int nblocks = 985;
 int nlog = LOGSIZE;