From 0bc1feab16ffe37e052a04b16416f3f211b5b88a Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Sun, 22 Oct 2023 09:42:17 +0200 Subject: [PATCH] fix: use ifdef for NNG_HAVE_BACKTRACE In some places, we use ifdef, and others if. This normalizes for always using ifdef, so we can compile when this macro is not defined. --- src/core/panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/panic.c b/src/core/panic.c index d50664cfd..f18c0d9e0 100644 --- a/src/core/panic.c +++ b/src/core/panic.c @@ -23,7 +23,7 @@ void nni_show_backtrace(void) { -#if NNG_HAVE_BACKTRACE +#ifdef NNG_HAVE_BACKTRACE void *frames[50]; int nframes;