With Arduino Zero selected in Boards menu when I compile the following sketch:
void setup() {
byte x = min(1, 2);
byte y = max(1, 2);
}
void loop() {}
I get the errors:
mintest.ino: In function 'void setup()':
mintest:2: error: 'min' was not declared in this scope
mintest:3: error: 'max' was not declared in this scope
mintest.ino:2:8: warning: unused variable 'x' [-Wunused-variable]
mintest.ino:3:8: warning: unused variable 'y' [-Wunused-variable]
'min' was not declared in this scope
I can see the max and min macros defined in wiring_constants.h and the other defines in that file work. Is this caused by a bug in the core or am I doing something wrong?