Last night I updated some Adafruit libraries, like RA8875 and Adafruit_GFX.
Since the update I get following errors. I do not have a clue where to look for a solution. Previously I did not get these errors.
Thanks in advance.
Arduino:1.8.15 (Mac OS X), Board:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from /Users/hd/Documents/Arduino/VE.Direct 7/VE.Direct_7scherm_25/VE.Direct_7scherm_25.ino:54:0:
/Users/hd/Documents/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:11:20: error: expected unqualified-id before '{' token
define swap(a, b) { int16_t t = a; a = b; b = t; }
^
/Users/hd/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.h:290:8: note: in expansion of macro 'swap'
void swap(int16_t &x, int16_t &y) {
^~~~
In file included from /Users/hd/Documents/Arduino/VE.Direct 7/VE.Direct_7scherm_25/VE.Direct_7scherm_25.ino:55:0:
/Users/hd/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.h:290:37: error: expected unqualified-id before '{' token
void swap(int16_t &x, int16_t &y) {
^
Hi,
Last night I updated some Adafruit libraries, like RA8875 and Adafruit_GFX. Since the update I get following errors. I do not have a clue where to look for a solution. Previously I did not get these errors. Thanks in advance.
Arduino:1.8.15 (Mac OS X), Board:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from /Users/hd/Documents/Arduino/VE.Direct 7/VE.Direct_7scherm_25/VE.Direct_7scherm_25.ino:54:0: /Users/hd/Documents/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:11:20: error: expected unqualified-id before '{' token
define swap(a, b) { int16_t t = a; a = b; b = t; }
/Users/hd/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.h:290:8: note: in expansion of macro 'swap' void swap(int16_t &x, int16_t &y) { ^~~~ In file included from /Users/hd/Documents/Arduino/VE.Direct 7/VE.Direct_7scherm_25/VE.Direct_7scherm_25.ino:55:0: /Users/hd/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.h:290:37: error: expected unqualified-id before '{' token void swap(int16_t &x, int16_t &y) { ^