From 4d670146b4054e11e90227f96a3a1c66410e8d0b Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Thu, 19 Jan 2023 13:00:09 +0000 Subject: more cross-platform work --- includes/common.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'includes/common.h') diff --git a/includes/common.h b/includes/common.h index baedfe9..1b0ce22 100644 --- a/includes/common.h +++ b/includes/common.h @@ -19,13 +19,16 @@ #undef toupper #undef tolower +#ifdef CW_CLT // What the fuck is this haha // typedef char * va_list; #define va_start(a,b) (a = ((va_list) __builtin_next_arg(b))) #define va_arg(a,b) (*(b *) (void *) ((a = (char *) (((((unsigned long)(a)) + ((__alignof__ (b) == 16) ? 15 : 3)) & ~((__alignof__ (b) == 16) ? 15 : 3)) + ((sizeof (b) + 3) & ~3))) - ((sizeof (b) + 3) & ~3))) #define va_end(a) ((void)0) - #define alloca(x) __alloca(x) +#else +#include +#endif #define CW_INLINE inline @@ -168,7 +171,11 @@ enum { typedef struct FSSpec { SInt16 vRefNum; SInt32 parID; +#ifdef CW_CLT Str255 name; +#else + Str63 name; +#endif } FSSpec; typedef struct FInfo { -- cgit v1.2.3