瀏覽代碼

Use 'has_include' instead of platform target to detect ICU support.

Nikita Lutsenko 2 年之前
父節點
當前提交
18b7f25ea4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SocketRocket/SRWebSocket.m

+ 1 - 1
SocketRocket/SRWebSocket.m

@@ -11,7 +11,7 @@
 
 #import "SRWebSocket.h"
 
-#if TARGET_OS_IPHONE
+#if __has_include(<unicode/utf8.h>)
 #define HAS_ICU
 #endif