Skip to content

Commit

Permalink
fix: use ifdef for NNG_HAVE_BACKTRACE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
casaroli committed Oct 22, 2023
1 parent d2aa59d commit 250e6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
void
nni_show_backtrace(void)
{
#if NNG_HAVE_BACKTRACE
#ifdef NNG_HAVE_BACKTRACE
void *frames[50];
int nframes;

Expand Down

0 comments on commit 250e6f1

Please sign in to comment.