diff options
author | Tim 'mithro' Ansell <mithro@mithis.com> | 2017-11-24 15:34:46 +1100 |
---|---|---|
committer | Tim 'mithro' Ansell <mithro@mithis.com> | 2017-11-25 19:48:26 -0800 |
commit | 34c9fbab5367133fe6e0365068f78762ded70623 (patch) | |
tree | 46c7ad3e406217ebd96a70e0460655b36552585f /libs/minisat/00_UPDATE.sh | |
parent | 8d48b47450f5e62a7db1766da57d5736872077a9 (diff) | |
download | yosys-34c9fbab5367133fe6e0365068f78762ded70623.tar.gz yosys-34c9fbab5367133fe6e0365068f78762ded70623.tar.bz2 yosys-34c9fbab5367133fe6e0365068f78762ded70623.zip |
minisat: Only define __STDC_XXX_MACROS if not already defined.
Replace;
#define __STDC_LIMIT_MACROS
#define __STDC_FORMAT_MACROS
With
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
This fixes a compile warning if you are defining these macros in your
CXXFLAGS (as some distros do).
Diffstat (limited to 'libs/minisat/00_UPDATE.sh')
-rw-r--r-- | libs/minisat/00_UPDATE.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/minisat/00_UPDATE.sh b/libs/minisat/00_UPDATE.sh index 2ffc11553..ea26215ab 100644 --- a/libs/minisat/00_UPDATE.sh +++ b/libs/minisat/00_UPDATE.sh @@ -9,8 +9,8 @@ rm -rf minisat_upstream sed -i -e 's,^#include *"minisat/[^/]\+/\?,#include ",' *.cc *.h sed -i -e 's/Minisat::memUsedPeak()/Minisat::memUsedPeak(bool)/' System.cc sed -i -e 's/PRI[iu]64/ & /' Options.h Solver.cc -sed -i -e '1 i #define __STDC_LIMIT_MACROS' *.cc -sed -i -e '1 i #define __STDC_FORMAT_MACROS' *.cc +sed -i -e '1 i #ifndef __STDC_LIMIT_MACROS\n#define __STDC_LIMIT_MACROS\n#endif' *.cc +sed -i -e '1 i #ifndef __STDC_FORMAT_MACROS\n#define __STDC_FORMAT_MACROS\n#endif' *.cc patch -p0 < 00_PATCH_mkLit_default_arg.patch patch -p0 < 00_PATCH_remove_zlib.patch |