I am migrating to Arduino 1.0 and am having issues with maintaining backward compatibility.
The following code does not compile on Arduino 1.0 unless the "#include NewSoftSerial.h" is commented out, even though this part of the code should have already been skipped by the pre-compiler.
Any workaround that that will allow me to compile in both Arduino 1.0 and older versions without modifying the source will be most welcome!
// Arduino 1.0 compatibility
#if defined(ARDUINO) && ARDUINO >= 100
#define WIRE_READ Wire.read();
#define WIRE_READ Wire.receive()
Here is the compiler message that goes away when the NewSoftSerial line is commented out with //
/home/justin/Documents/Arduino/clockthree/libraries/NewSoftSerial/NewSoftSerial.cpp:39:24: fatal error: WConstants.h: No such file or directory