summaryrefslogtreecommitdiff
path: root/Source/WebCore/WebCorePrefix.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/WebCorePrefix.h')
-rw-r--r--Source/WebCore/WebCorePrefix.h78
1 files changed, 43 insertions, 35 deletions
diff --git a/Source/WebCore/WebCorePrefix.h b/Source/WebCore/WebCorePrefix.h
index 7ec77523d..6ee3020e5 100644
--- a/Source/WebCore/WebCorePrefix.h
+++ b/Source/WebCore/WebCorePrefix.h
@@ -18,7 +18,7 @@
*
*/
-/* This prefix file should contain only:
+/* This prefix file should contain only:
* 1) files to precompile for faster builds
* 2) in one case at least: OS-X-specific performance bug workarounds
* 3) the special trick to catch us using new or delete without including "config.h"
@@ -27,6 +27,10 @@
/* Things that need to be defined globally should go into "config.h". */
+#if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE)
+#include "cmakeconfig.h"
+#endif
+
#include <wtf/Platform.h>
#if defined(__APPLE__)
@@ -40,11 +44,11 @@
#if OS(WINDOWS)
#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0502
+#define _WIN32_WINNT 0x601
#endif
#ifndef WINVER
-#define WINVER 0x0502
+#define WINVER 0x0601
#endif
#if !USE(CURL)
@@ -53,6 +57,9 @@
#endif
#endif
+#undef WEBCORE_EXPORT
+#define WEBCORE_EXPORT WTF_EXPORT_DECLARATION
+
#else
#include <pthread.h>
@@ -79,37 +86,9 @@
#endif
#ifdef __cplusplus
-
-
-#include <ciso646>
-
-#if defined(_LIBCPP_VERSION)
-
-// Add work around for a bug in libc++ that caused standard heap
-// APIs to not compile <rdar://problem/10858112>.
-
-#include <type_traits>
-
-namespace WebCore {
- class TimerHeapReference;
-}
-
-_LIBCPP_BEGIN_NAMESPACE_STD
-
-inline _LIBCPP_INLINE_VISIBILITY
-const WebCore::TimerHeapReference& move(const WebCore::TimerHeapReference& t)
-{
- return t;
-}
-
-_LIBCPP_END_NAMESPACE_STD
-
-#endif // defined(_LIBCPP_VERSION)
-
#include <algorithm>
#include <cstddef>
#include <new>
-
#endif
#if defined(__APPLE__)
@@ -122,14 +101,40 @@ _LIBCPP_END_NAMESPACE_STD
#endif
#include <CoreFoundation/CoreFoundation.h>
+
+#if OS(WINDOWS)
+#ifndef CF_IMPLICIT_BRIDGING_ENABLED
+#define CF_IMPLICIT_BRIDGING_ENABLED
+#endif
+
+#ifndef CF_IMPLICIT_BRIDGING_DISABLED
+#define CF_IMPLICIT_BRIDGING_DISABLED
+#endif
+
+#include <CoreFoundation/CFBase.h>
+
+#ifndef CF_ENUM
+#define CF_ENUM(_type, _name) _type _name; enum
+#endif
+#ifndef CF_OPTIONS
+#define CF_OPTIONS(_type, _name) _type _name; enum
+#endif
+#ifndef CF_ENUM_DEPRECATED
+#define CF_ENUM_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep)
+#endif
+#ifndef CF_ENUM_AVAILABLE
+#define CF_ENUM_AVAILABLE(_mac, _ios)
+#endif
+#endif
+
#if PLATFORM(WIN_CAIRO)
#include <ConditionalMacros.h>
#include <windows.h>
#else
#if OS(WINDOWS)
-#if USE(CG)
+#if USE(CG)
// FIXME <rdar://problem/8208868> Remove support for obsolete ColorSync API, CoreServices header in CoreGraphics
// We can remove this once the new ColorSync APIs are available in an internal Safari SDK.
#include <ColorSync/ColorSync.h>
@@ -138,13 +143,13 @@ _LIBCPP_END_NAMESPACE_STD
#define OBSOLETE_COLORSYNC_API
#endif
#endif
-#if USE(CFNETWORK)
-/* Windows doesn't include CFNetwork.h via CoreServices.h, so we do
- it explicitly here to make Windows more consistent with Mac. */
+
+#if USE(CFURLCONNECTION)
#include <CFNetwork/CFNetwork.h>
// On Windows, dispatch.h needs to be included before certain CFNetwork headers.
#include <dispatch/dispatch.h>
#endif
+
#include <windows.h>
#else
#if !PLATFORM(IOS)
@@ -158,7 +163,10 @@ _LIBCPP_END_NAMESPACE_STD
#if PLATFORM(IOS)
#import <Foundation/Foundation.h>
#else
+#if USE(APPKIT)
#import <Cocoa/Cocoa.h>
+#import <wtf/mac/AppKitCompatibilityDeclarations.h>
+#endif
#endif // PLATFORM(IOS)
#endif