aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-04-07 13:56:40 -0700
committerGitHub <noreply@github.com>2020-04-07 13:56:40 -0700
commit5d18fdadfe758fed14a93977d3e8e83096c26c5a (patch)
treedf1d62ad1a42537059cddce68044a8070a9055d8
parent40223eaee1b67a6a3812520ede8f1ce027631a78 (diff)
parentc15040c218016f95eb5b3597af82b299cb3f2abd (diff)
downloadyosys-5d18fdadfe758fed14a93977d3e8e83096c26c5a.tar.gz
yosys-5d18fdadfe758fed14a93977d3e8e83096c26c5a.tar.bz2
yosys-5d18fdadfe758fed14a93977d3e8e83096c26c5a.zip
Merge pull request #1881 from hzeller/only-define-stdc-format-macros-if-not-already
aigerparse: only define __STDC_FORMAT_MACROS it not already before.
-rw-r--r--frontends/aiger/aigerparse.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc
index cbce0c990..92cf92fa8 100644
--- a/frontends/aiger/aigerparse.cc
+++ b/frontends/aiger/aigerparse.cc
@@ -30,7 +30,9 @@
#include <libkern/OSByteOrder.h>
#define __builtin_bswap32 OSSwapInt32
#endif
+#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
+#endif
#include <inttypes.h>
#include "kernel/yosys.h"