Error in File WProgram.h

Hi all, i've downloaded this library:

http://www.neufeld.newton.ks.us/electronics/?page_id=249

But if i try to compile the sample application, i got:

In file included from C:\Program Files\Arduino\hardware\cores\arduino/WProgram.h:4,

I'm using Arduino 0012 Alpha. Where is the fault?

thx sunny

Is that the whole error message / output you get? If not, can you post the rest of it?

no, that's the full message i got:

In file included from C:\Program Files\Arduino\hardware\cores\arduino/WProgram.h:4,

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:80: error: expected unqualified-id before 'int'

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:80: error: expected `)' before 'int'

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:80: error: expected `)' before 'int'

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:144: error: expected identifier before '(' token

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:144: error: expected `)' before '(' token

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:144: error: expected ',' or '...' before '(' token

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:144: error: expected initializer before ')' token

c:/program files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:176: error: '__compar_fn_t' has not been declared

In file included from C:\Program Files\Arduino\hardware\cores\arduino/WProgram.h:6,

thx sunny

Hm.. both the max() / min() function calls doesn't work. if i write:

inline void Quadrature::maximum(int max) {
    _max = max;
    _usingmax = 1;

    //  adjust position if higher than new maximum
    _position = _position < max ? _position : max;
}

instead of:

inline void Quadrature::maximum(int max) {
    _max = max;
    _usingmax = 1;

    //  adjust position if higher than new maximum
    _position = min(_position, max);
}

all works fine. Is this an Arduino bug? Or do i just need to include one more library? (I've tried to include <math.h> with no effect)

thx sunny