aigerparse: only define __STDC_FORMAT_MACROS it not already before.
authorHenner Zeller <h.zeller@acm.org>
Tue, 7 Apr 2020 19:50:31 +0000 (12:50 -0700)
committerHenner Zeller <h.zeller@acm.org>
Tue, 7 Apr 2020 19:50:31 +0000 (12:50 -0700)
frontends/aiger/aigerparse.cc

index cbce0c9903d403a5ce7a71bbb5b0120bfa7905d4..92cf92fa8b1d160d7f070eb72b6422cc1f2c780f 100644 (file)
@@ -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"