Skip to content

Commit 462081d

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/util.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
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+
#include <execinfo.h>
15+
#if
16+
1417
using namespace gridpp;
1518

1619
bool gridpp::is_valid(float value) {

0 commit comments

Comments
 (0)