When getting a compiler error on min(var, var2), which compiled in Pinguino 11, I found that in macro.h the min and max macro is commented out.

Code:

` //#ifndef __XC8__`

//#define min(a,b) ((a)<(b)?(a):(b))

//#define min(x, y) (y ^ ((x ^ y) & -(x < y)))

//#define max(a,b) ((a)>(b)?(a):(b))

//#define max(x, y) (x ^ ((x ^ y) & -(x < y)))

//#endif

After changing this to

Code:

` //#ifndef __XC8__`

#define min(a,b) ((a)<(b)?(a):(b))

//#define min(x, y) (y ^ ((x ^ y) & -(x < y)))

#define max(a,b) ((a)>(b)?(a):(b))

//#define max(x, y) (x ^ ((x ^ y) & -(x < y)))

//#endif

like it is in the macro.h of version 11 the sketch compiles without errors.

Is this a regression or did I mis something obvious?

btw, I like the Pinguino IDE 12 very much.

Thanks for all the good work, Dick