From 4b6d769fd5280b52d1310eefc96d6bf19cd4880d Mon Sep 17 00:00:00 2001 From: SeleDreams Date: Mon, 18 Jul 2022 08:19:20 +0200 Subject: [PATCH] Replaced the typedef of Thread in order to allow user redefinition --- libctru/include/3ds/thread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libctru/include/3ds/thread.h b/libctru/include/3ds/thread.h index 68c99eb..6a649a3 100644 --- a/libctru/include/3ds/thread.h +++ b/libctru/include/3ds/thread.h @@ -19,7 +19,8 @@ #define WRITE_DATA_TO_FAULTING_STACK ((ERRF_ExceptionData*)1) /// libctru thread handle type -typedef struct Thread_tag* Thread; +typedef struct Thread_tag* CTRThread; +#define Thread CTRThread /// Exception handler type, necessarily an ARM function that does not return. typedef void (*ExceptionHandler)(ERRF_ExceptionInfo* excep, CpuRegisters* regs);