Skip to content

Commit 9f8da87

Browse files
committed
Fix build support for newer gcc8
1 parent e24223e commit 9f8da87

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/PlayMIDIFromSPIFFS/PlayMIDIFromSPIFFS.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Do not build on GCC8, GCC8 has a compiler bug
44

5-
#if defined(ARDUINO_ARCH_RP2040) || (__GNUC__ == 8)
5+
#if defined(ARDUINO_ARCH_RP2040) || ((__GNUC__ == 8) && (__GNUC_MINOR__ < 4))
66
void setup() {}
77
void loop() {}
88
#else

src/AudioGeneratorMIDI.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
#include "AudioGeneratorMIDI.h"
6060

61-
#if __GNUC__ == 8
61+
#if (__GNUC__ == 8) && (__GNUC_MINOR__ < 4)
6262
// Do not build, GCC8 has a compiler bug
6363
#else // __GNUC__ == 8
6464

src/AudioGeneratorMIDI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#ifndef _AUDIOGENERATORMIDI_H
2222
#define _AUDIOGENERATORMIDI_H
2323

24-
#if __GNUC__ == 8
24+
#if (__GNUC__ == 8) && (__GNUC_MINOR__ < 4)
2525
// Do not build, GCC8 has a compiler bug
2626
#else // __GNUC__ == 8
2727

0 commit comments

Comments
 (0)