[solved] max() and min() cause error with Arduino Zero

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?

I'm using 1.6.0 and it compiled fine for me.

econjack:
I'm using 1.6.0 and it compiled fine for me.

This problem is specific to the 'Zero', and changes have been made to fix this issue.
See: Fixed min/max definition and other macros as well by cmaglie · Pull Request #12 · arduino/ArduinoCore-samd · GitHub
http://forum.arduino.cc/index.php?topic=330924.0

Thanks pYro_65! That fixed the problem. I didn't realize there was a separate repository for the SAMD core. I was looking in the IDE repository for related issues or PRs.

Opps...missed the Zero board.