From a2f448ab4cc29bffb9c91d7ee55c83f5adeaa2c8 Mon Sep 17 00:00:00 2001 From: tlein Date: Tue, 29 Aug 2017 22:32:21 -0500 Subject: [PATCH] fix iOS build error when using @import --- src/SFML/Window/iOS/ClipboardImpl.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Window/iOS/ClipboardImpl.mm b/src/SFML/Window/iOS/ClipboardImpl.mm index 74ace07ce..473e17af7 100644 --- a/src/SFML/Window/iOS/ClipboardImpl.mm +++ b/src/SFML/Window/iOS/ClipboardImpl.mm @@ -27,7 +27,7 @@ //////////////////////////////////////////////////////////// #include -@import UIKit +#import namespace sf { @@ -40,7 +40,7 @@ String ClipboardImpl::getString() UIPasteboard* pboard = [UIPasteboard generalPasteboard]; if (pboard.hasStrings) { - NSString* data = pboard.string + NSString* data = pboard.string; char const* utf8 = [data cStringUsingEncoding:NSUTF8StringEncoding]; NSUInteger length = [data lengthOfBytesUsingEncoding:NSUTF8StringEncoding];