Help with compilation of stdio.h

I'm running Arduino 0012 on a nuelectronics Freeduino with nuelectronics ethernet shield.

I have downloaded some example code for a simple webserver from Pachube

http://community.pachube.com/files/simpleEEMLServer.zip

The example code includes stdio.h

When I compile, I get compilation errors in lines 263, 264 and 417 of stdio.h - see below

Any assistance appreciated

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:263: error: expected unqualified-id before 'int'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:263: error: expected `)' before 'int'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:263: error: expected `)' before 'int'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:264: error: expected unqualified-id before 'int'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:264: error: expected `)' before 'int'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:264: error: expected `)' before 'int'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:417: error: '__put' was not declared in this scope

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:417: error: expected primary-expression before 'char'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:417: error: expected primary-expression before 'struct'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:417: error: '__get' was not declared in this scope

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:417: error: expected primary-expression before 'struct'

c:/documents and settings/ken boak/desktop/arduino-0012-win/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:417: error: initializer expression list treated as compound expression

OK I commented out

// #include "stdio.h"

And it compiles OK - clearly this code didn't need stdio.h after all.

G

this changed in Arduino 11.

see http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1207028702/3 for more info

the solution is to add the following line:

#undef int()

before

#include <stdio.h>