Added an explicit check for ARC.

This commit is contained in:
Pietro Gagliardi 2016-01-02 09:22:24 -05:00
parent 05ab8d07db
commit 9e8e09f262
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@
#import "../ui_darwin.h"
#import "../common/uipriv.h"
#if __has_feature(objc_arc)
#error Sorry, libui cannot be compiled with ARC.
#endif
#define toNSString(str) [NSString stringWithUTF8String:(str)]
#define fromNSString(str) [(str) UTF8String]