Skip to content

Commit 4c7192b

Browse files
Fix error with pre-C++11 compilers
1 parent 026c152 commit 4c7192b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Adafruit_SPITFT.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class Adafruit_SPITFT : public Adafruit_GFX {
379379
PORTreg_t dcPort; ///< PORT register for data/command
380380
#endif // end HAS_PORT_SET_CLR
381381
#endif // end USE_FAST_PINIO
382-
#if !defined(ARDUINO_STM32_FEATHER)
382+
#if defined(__cplusplus) && (__cplusplus >= 201100)
383383
union {
384384
#endif
385385
struct { // Values specific to HARDWARE SPI:
@@ -452,7 +452,7 @@ class Adafruit_SPITFT : public Adafruit_GFX {
452452
int8_t _rd; ///< Read strobe pin # (or -1)
453453
bool wide = 0; ///< If true, is 16-bit interface
454454
} tft8; ///< Parallel interface settings
455-
#if !defined(ARDUINO_STM32_FEATHER)
455+
#if defined(__cplusplus) && (__cplusplus >= 201100)
456456
}; ///< Only one interface is active
457457
#endif
458458
#if defined(USE_SPI_DMA) // Used by hardware SPI and tft8

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit GFX Library
2-
version=1.4.6
2+
version=1.4.7
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.

0 commit comments

Comments
 (0)