Enable Pointer Events on watchOS
[WebKit-https.git] / Source / WebCore / WebCorePrefix.h
index c0650a1..c5a68ff 100644 (file)
 #endif
 #endif
 
-#if OS(WINDOWS)
+#if PLATFORM(WIN)
 #undef WEBCORE_EXPORT
 #define WEBCORE_EXPORT WTF_EXPORT_DECLARATION
+#undef WEBCORE_TESTSUPPORT_EXPORT
+#define WEBCORE_TESTSUPPORT_EXPORT WTF_EXPORT_DECLARATION
 #else
 #include <pthread.h>
-#endif // OS(WINDOWS)
+#endif // PLATFORM(WIN)
 
 #include <sys/types.h>
 #include <fcntl.h>
 #include <CoreFoundation/CoreFoundation.h>
 #endif
 
+#if USE(CG)
+#include <CoreGraphics/CoreGraphics.h>
+#endif
+
 #if OS(WINDOWS)
 #ifndef CF_IMPLICIT_BRIDGING_ENABLED
 #define CF_IMPLICIT_BRIDGING_ENABLED
 #endif
 
 #include <windows.h>
-#else
-#if !PLATFORM(IOS)
-#include <CoreServices/CoreServices.h>
-#endif // !PLATFORM(IOS)
 #endif // OS(WINDOWS)
 
+#if PLATFORM(IOS_FAMILY)
+#include <MobileCoreServices/MobileCoreServices.h>
+#endif
+
+#if PLATFORM(MAC)
+#include <CoreServices/CoreServices.h>
+#endif
+
 #endif
 
 #ifdef __OBJC__
-#if PLATFORM(IOS)
+#if PLATFORM(IOS_FAMILY)
 #import <Foundation/Foundation.h>
 #else
 #if USE(APPKIT)
 #import <Cocoa/Cocoa.h>
 #import <wtf/mac/AppKitCompatibilityDeclarations.h>
 #endif
-#endif // PLATFORM(IOS)
+#endif // PLATFORM(IOS_FAMILY)
 #endif
 
 #ifdef __cplusplus