소스 검색

VLCKit: fix compilation with Xcode 5

Felix Paul Kühne 10 년 전
부모
커밋
10b5319ca7
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      VLC_Prefix.pch

+ 8 - 0
VLC_Prefix.pch

@@ -25,3 +25,11 @@
 #define N_(str) gettext_noop(str)
 #define gettext_noop(str) (str)
 #endif
+
+#ifndef NS_DESIGNATED_INITIALIZER
+#if __has_attribute(objc_designated_initializer)
+#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer))
+#else
+#define NS_DESIGNATED_INITIALIZER
+#endif
+#endif