portability: beware of max () with MSVC
commit977e19840d085d09ed454ca8aae1b62b9351034a
authorAkim Demaille <akim.demaille@gmail.com>
Sat, 1 Aug 2020 17:56:34 +0000 (1 19:56 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sun, 2 Aug 2020 06:19:35 +0000 (2 08:19 +0200)
treede4e48991bc8030dc6d550830b6e70877a8c7201
parentd975c2f76e6931d9abc8c63a26110a22f8c0294c
portability: beware of max () with MSVC

Reported by Maarten De Braekeleer.
https://lists.gnu.org/r/bison-patches/2020-07/msg00080.html

We don't want to use gnulib's min and max macros, since we use
function calls in min/max arguments.

* src/location.c (max_int, min_int): Move to...
* src/system.h: here.
* src/counterexample.c, src/derivation.c: Use max_int instead of max.
src/counterexample.c
src/derivation.c
src/location.c
src/system.h