HalfDemon / canduino

Automatically exported from code.google.com/p/canduino
0 stars 0 forks source link

WProgram.h file not found in Arduino >= 1.0 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Using library with Arduino >= 1.0

Code using this library fails to compile with a "file not found error' for the 
WProgram.h header file.

Arduino version 1.0 renamed the WProgram.h file to Arduino.h.

This code should fix the problem...

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

The line can be removed altogether from CAN.cpp since it'll get included 
properly from CAN.h

Original issue reported on code.google.com by phil.bir...@gmail.com on 17 Jan 2013 at 2:48

GoogleCodeExporter commented 9 years ago
Diff attached

Original comment by phil.bir...@gmail.com on 17 Jan 2013 at 3:02

Attachments: