aboutsummaryrefslogtreecommitdiff
path: root/src/core/panic.c
diff options
context:
space:
mode:
authorMarco Casaroli <marco.casaroli@gmail.com>2023-10-22 09:42:17 +0200
committerGarrett D'Amore <garrett@damore.org>2023-11-25 16:23:30 -0800
commit0bc1feab16ffe37e052a04b16416f3f211b5b88a (patch)
tree7a3d174bc38aa883a3e2875dd5c14d6eba8108ad /src/core/panic.c
parent1c3adceccab907fd7cd7e1fce105e5889767dbb4 (diff)
downloadnng-0bc1feab16ffe37e052a04b16416f3f211b5b88a.tar.gz
nng-0bc1feab16ffe37e052a04b16416f3f211b5b88a.tar.bz2
nng-0bc1feab16ffe37e052a04b16416f3f211b5b88a.zip
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.
Diffstat (limited to 'src/core/panic.c')
-rw-r--r--src/core/panic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/panic.c b/src/core/panic.c
index d50664cf..f18c0d9e 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;