summaryrefslogtreecommitdiff
path: root/includes/common.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-19 13:00:09 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-19 13:00:09 +0000
commit4d670146b4054e11e90227f96a3a1c66410e8d0b (patch)
tree8dca31cf9ee497ee59e833f48dd76c81aaef3cf5 /includes/common.h
parent5d0bbb19cc133753cebda7099e46d4b2084336c6 (diff)
downloadMWCC-4d670146b4054e11e90227f96a3a1c66410e8d0b.tar.gz
MWCC-4d670146b4054e11e90227f96a3a1c66410e8d0b.zip
more cross-platform work
Diffstat (limited to '')
-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 {