Fix error with pre-C++11 compilers

This commit is contained in:
Phillip Burgess 2019-03-18 13:34:23 -07:00
parent 026c152d45
commit 4c7192b197
2 changed files with 3 additions and 3 deletions

View File

@ -379,7 +379,7 @@ class Adafruit_SPITFT : public Adafruit_GFX {
PORTreg_t dcPort; ///< PORT register for data/command
#endif // end HAS_PORT_SET_CLR
#endif // end USE_FAST_PINIO
#if !defined(ARDUINO_STM32_FEATHER)
#if defined(__cplusplus) && (__cplusplus >= 201100)
union {
#endif
struct { // Values specific to HARDWARE SPI:
@ -452,7 +452,7 @@ class Adafruit_SPITFT : public Adafruit_GFX {
int8_t _rd; ///< Read strobe pin # (or -1)
bool wide = 0; ///< If true, is 16-bit interface
} tft8; ///< Parallel interface settings
#if !defined(ARDUINO_STM32_FEATHER)
#if defined(__cplusplus) && (__cplusplus >= 201100)
}; ///< Only one interface is active
#endif
#if defined(USE_SPI_DMA) // Used by hardware SPI and tft8

View File

@ -1,5 +1,5 @@
name=Adafruit GFX Library
version=1.4.6
version=1.4.7
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.