I think the macro generates templated min/max functions, so in the end there are no lowercase macros.
Anyway, I have a theory on where the problem might be.
PREVIOUSLY: I think the problem might be that one of the projects include <algorithm>, which defines templated min/max functions.
EDIT:When I look up min() or max() i VS, they are defined as macros in WinDef.h. The problem is that no file in the project seems to include WinDef.h, at least not directly. Can this be solved with namespaces somehow?