Parcourir la source

Fix build errors when using UIKit for Mac (Catalyst)

Iulian Onofrei il y a 7 ans
Parent
commit
f7619cdbf2
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h

+ 3 - 1
Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h

@@ -24,11 +24,13 @@
  *
  * See <os/object.h> for details.
  */
+#if !TARGET_OS_MACCATALYST
 #if OS_OBJECT_USE_OBJC
 OS_OBJECT_DECL(xpc_object);
 #else
 typedef void * xpc_object_t;
-#endif 
+#endif
+#endif
 
 #define OS_ACTIVITY_MAX_CALLSTACK 32