adafruit / TFTLCD-Library

Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc
http://www.ladyada.net/products/tfttouchbreakout/ and http://www.ladyada.net/products/tfttouchshield
319 stars 260 forks source link

TFTLCD.h missing header guard #4

Closed RebeccaRGB closed 12 years ago

RebeccaRGB commented 12 years ago

TFTLCD.h does not have a header guard (#ifndef #define #endif). Because of this I am unable to use the TFTLCD library from an external .cpp file. (Both the .cpp file and the .ino file have to #include TFTLCD.h in order for the compiler to find it, but when I do so I get errors about duplicate definitions.) I added the header guards myself and now my sketch compiles, but this complicates things for anybody working downstream from me.

ladyada commented 12 years ago

fixed