fix iOS build error when using @import
This commit is contained in:
parent
58b7c2c48a
commit
a2f448ab4c
@ -27,7 +27,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Window/iOS/ClipboardImpl.hpp>
|
#include <SFML/Window/iOS/ClipboardImpl.hpp>
|
||||||
|
|
||||||
@import UIKit
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
namespace sf
|
namespace sf
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ String ClipboardImpl::getString()
|
|||||||
UIPasteboard* pboard = [UIPasteboard generalPasteboard];
|
UIPasteboard* pboard = [UIPasteboard generalPasteboard];
|
||||||
if (pboard.hasStrings)
|
if (pboard.hasStrings)
|
||||||
{
|
{
|
||||||
NSString* data = pboard.string
|
NSString* data = pboard.string;
|
||||||
|
|
||||||
char const* utf8 = [data cStringUsingEncoding:NSUTF8StringEncoding];
|
char const* utf8 = [data cStringUsingEncoding:NSUTF8StringEncoding];
|
||||||
NSUInteger length = [data lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
|
NSUInteger length = [data lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
|
||||||
|
Loading…
Reference in New Issue
Block a user