max and min are already defined.
Angeliccare opened this issue · 3 comments
Angeliccare commented
minwindef.h from SDK 8.1 contains:
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
those words are used in numcpp, please.
dpilger26 commented
Yep that's unfortunate, but nothing can be done about it.
PhilipDeegan commented
@Angeliccare you can try either before including windows.h
#define NOMINMAX
or adding to the compile command -DNOMINMAX
dpilger26 commented
Closing due to inactivity.