From 77a60d63a6aa6ffc02c541a8cdc7483744cc827c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 16:38:51 -0400 Subject: Fixed compiler errors and bugs. uiButton on Mac OS X works! --- new/uipriv_darwin.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'new/uipriv_darwin.h') diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h index c613810..3c9c731 100644 --- a/new/uipriv_darwin.h +++ b/new/uipriv_darwin.h @@ -7,8 +7,14 @@ #define toNSString(str) [NSString stringWithUTF8String:(str)] +// TODO move this to the right place +struct uiSizing { +}; + // alloc_darwin.m extern void *uiAlloc(size_t); +// TODO use this in existing files +#define uiNew(T) ((T *) uiAlloc(sizeof (T))) extern void *uiRealloc(void *, size_t); extern void uiFree(void *); -- cgit v1.2.3