From 2be0d57e40ca48da42993b7f8ed2d87148348ef8 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 12 Jun 2020 13:09:00 +0200 Subject: [PATCH] Adapt to devkitPPC r37 --- Makefile | 6 ++---- src/imports.h | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4be67dc..c21e8c3 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,8 @@ INCLUDES := src #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- -CFLAGS := -std=gnu11 -mcpu=750 -meabi -mhard-float -ffast-math \ - -O2 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE) -CXXFLAGS := -std=gnu++11 -mcpu=750 -meabi -mhard-float -ffast-math \ - -O2 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE) +CFLAGS := -std=c2x -g -Wall -O2 -ffunction-sections -DESPRESSO -mcpu=750 -meabi -mhard-float $(INCLUDE) +CXXFLAGS := -std=c++20 -g -Wall -O2 -ffunction-sections -DESPRESSO -mcpu=750 -meabi -mhard-float $(INCLUDE) ASFLAGS := -mregnames LDFLAGS := -nostartfiles -Wl,--gc-sections,--allow-multiple-definition diff --git a/src/imports.h b/src/imports.h index 6bd078c..d375a95 100644 --- a/src/imports.h +++ b/src/imports.h @@ -53,6 +53,10 @@ IMPORT(OSGetSemaphoreCount); IMPORT(OSSignalSemaphore); IMPORT(OSWaitSemaphore); IMPORT(OSTryWaitSemaphore); +IMPORT(OSCompareAndSwapAtomicEx); +IMPORT(OSCompareAndSwapAtomic); +IMPORT(OSGetThreadSpecific); +IMPORT(OSSetThreadSpecific); IMPORT(exit); IMPORT(_Exit);