Skip to content

Commit c3a4f39

Browse files
committed
Don't import execinfo.h when not necessary
1 parent 634cd36 commit c3a4f39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/api/util.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55
#include <cmath>
66
#include <math.h>
77
#include <assert.h>
8-
#include <execinfo.h>
98
#include <signal.h>
109
#include <iomanip>
1110
#include <cstdio>
1211
#include <exception>
1312

13+
#ifdef DEBUG
14+
// This is not portable (only available on GNU/Linux
15+
#include <execinfo.h>
16+
#if
17+
1418
using namespace gridpp;
1519

1620
bool gridpp::is_valid(float value) {

0 commit comments

Comments
 (0)