minisat: Only define __STDC_XXX_MACROS if not already defined.
authorTim 'mithro' Ansell <mithro@mithis.com>
Fri, 24 Nov 2017 04:34:46 +0000 (15:34 +1100)
committerTim 'mithro' Ansell <mithro@mithis.com>
Sun, 26 Nov 2017 03:48:26 +0000 (19:48 -0800)
commit34c9fbab5367133fe6e0365068f78762ded70623
tree46c7ad3e406217ebd96a70e0460655b36552585f
parent8d48b47450f5e62a7db1766da57d5736872077a9
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).
libs/ezsat/ezminisat.cc
libs/minisat/00_UPDATE.sh
libs/minisat/Options.cc
libs/minisat/SimpSolver.cc
libs/minisat/Solver.cc
libs/minisat/System.cc