From 9e8e09f262c567ba1389b6474c14f23c1e002d87 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 2 Jan 2016 09:22:24 -0500 Subject: [PATCH] Added an explicit check for ARC. --- darwin/uipriv_darwin.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/darwin/uipriv_darwin.h b/darwin/uipriv_darwin.h index b2f27ced..6ee03c5e 100644 --- a/darwin/uipriv_darwin.h +++ b/darwin/uipriv_darwin.h @@ -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]