@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2022 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -13,20 +13,22 @@ * file. */ #include "config.h" -#include #include #import "OFPlainThread.h" #import "OFData.h" +#import "OFString.h" #import "OFTLSKey.h" +#define Class IntuitionClass #include #include #include +#undef Class #ifndef OF_MORPHOS extern void OFTLSKeyThreadExited(void); #endif static OFTLSKey threadKey; @@ -191,11 +193,11 @@ } Wait(1ul << thread->joinSigBit); FreeSignal(thread->joinSigBit); - assert(thread->done); + OFAssert(thread->done); free(thread); return 0; }