The SPARK compiler definition is now available on the IDE and CLI compile servers. This definition allows conditional compiling much like what is done with Arduino (eg. #if ARDUINO >= 100)). Typical use is as follows:
#if defined (SPARK) // Spark code code goes here #else // Arduino code goes here #endif
Thanks @Dave for getting it working!