fix iOS build error when using @import

This commit is contained in:
tlein 2017-08-29 22:32:21 -05:00 committed by Lukas Dürrenberger
parent 58b7c2c48a
commit a2f448ab4c

View File

@ -27,7 +27,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Window/iOS/ClipboardImpl.hpp>
@import UIKit
#import <UIKit/UIKit.h>
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];