summaryrefslogtreecommitdiff
path: root/includes/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.h')
-rw-r--r--includes/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/common.h b/includes/common.h
index 8f9c346..809f99f 100644
--- a/includes/common.h
+++ b/includes/common.h
@@ -15,6 +15,14 @@
//#include <MacHeadersMach-O>
#define CW_PASCAL pascal
#undef toupper
+#undef tolower
+
+// 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)
+
#else
#include <stdarg.h>
// expand this to nothing