C++ build broken.
We currently get:
In file included from ./hydro.h(28),
from ./cooling/none/cooling.h(33),
from cooling.h(32),
from statistics.c(36):
./kernel_hydro.h(271): error: identifier "max" is undefined
in Jenkins when building the statistics.c file.
The only way I've found to "fix" this is using:
/* Local headers. */
#undef SWIFT_MINMAX_H
#include "cooling.h"
#include "engine.h"
#include "error.h"
#include "gravity.h"
#include "hydro.h"
#include "threadpool.h"
So forcing a second evaluation of the minmax.h
file. Don't understand this as far as I
know the C preprocessor has no scoping rules, other than after the #define
....