Skip to content

Commit a253c13

Browse files
authored
Fix cpp complications on Arch Linux (#1251)
1 parent 7edb93d commit a253c13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ typedef s32 Difficulty2D[AC_DIFFICULTY_LEN][2];
538538

539539
#define DMA_COPY_SEGMENT(segment) dma_copy(segment##_ROM_START, segment##_ROM_END, segment##_VRAM)
540540

541-
#if __STDC_VERSION__ < 202311L
541+
#if defined(OLD_GCC) || __STDC_VERSION__ < 202311L
542542
typedef enum {
543543
false,
544544
true

include/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
#include "ultra64.h"
55

6-
#if (defined(__cplusplus) && __cplusplus >= 201103L)
6+
#if !defined(OLD_GCC) && (defined(__cplusplus) && __cplusplus >= 201103L)
77
/* C++11 or later */
88
#include <cstddef>
9-
#elif (defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202000L))
9+
#elif !defined(OLD_GCC) && (defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202000L))
1010
/* C23 or later */
1111
#include <stddef.h>
1212
#else

0 commit comments

Comments
 (0)