aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-14 21:45:55 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-14 21:45:55 +0200
commit49b8874884185606319de5c44bc90c5e78d9f48f (patch)
tree5c99dc4b67bffb297209dc66bd0644caaf0b887d /src
parenteb91cf0f5584538d512c136367d433f95299e4ea (diff)
Prefer #error to static_assert()
Diffstat (limited to 'src')
-rw-r--r--src/arena.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arena.c b/src/arena.c
index 0a12c52..7ca5626 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -10,9 +10,9 @@
#include "common.h"
#include "errors.h"
-/* TODO: Support implementations without MAP_ANON? */
+/* TODO: Support malloc() backend for systems without MAP_ANON */
#ifndef MAP_ANON
-static_assert(NULL, "MAP_ANON not available on this system");
+# error "System not supported (missing MAP_ANON)"
#endif
#if DEBUG