aboutsummaryrefslogtreecommitdiff
path: root/k_quants.h
diff options
context:
space:
mode:
Diffstat (limited to 'k_quants.h')
-rw-r--r--k_quants.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/k_quants.h b/k_quants.h
index 6abe3d7..adc6a39 100644
--- a/k_quants.h
+++ b/k_quants.h
@@ -15,6 +15,14 @@
#define K_SCALE_SIZE 12
#endif
+#ifndef static_assert
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201100L)
+#define static_assert(cond, msg) _Static_assert(cond, msg)
+#else
+#define static_assert(cond, msg) struct global_scope_noop_trick
+#endif
+#endif
+
//
// Super-block quantization structures
//