summaryrefslogtreecommitdiff
path: root/includes/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.h')
-rw-r--r--includes/common.h9
1 files changed, 8 insertions, 1 deletions
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 <stdarg.h>
+#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 {