From 49b8874884185606319de5c44bc90c5e78d9f48f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 14 Jun 2024 21:45:55 +0200 Subject: Prefer #error to static_assert() --- src/arena.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3