Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: Source/core/WebCorePrefix.h

Issue 15923004: WebCorePrefix.h is only used for Mac OS X. Clean up dead code and remove including wtf/Platform.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename WebCorePrefix.h to WebCorePrefixMac.h Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/config.h ('k') | Source/core/WebCorePrefixMac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/WebCorePrefix.h
diff --git a/Source/core/WebCorePrefix.h b/Source/core/WebCorePrefix.h
deleted file mode 100644
index e8b4196382499607d8a6946594f4950917533c9a..0000000000000000000000000000000000000000
--- a/Source/core/WebCorePrefix.h
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2013 Apple Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-/* 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"
- * The project should be able to build without this header, although we rarely test that.
- */
-
-/* Things that need to be defined globally should go into "config.h". */
-
-#include <wtf/Platform.h>
-
-#if defined(__APPLE__)
-#ifdef __cplusplus
-#define NULL __null
-#else
-#define NULL ((void *)0)
-#endif
-#endif
-
-#if OS(WINDOWS)
-
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0502
-#endif
-
-#ifndef WINVER
-#define WINVER 0x0502
-#endif
-
-#ifndef _WINSOCKAPI_
-#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
-#endif
-
-// If we don't define these, they get defined in windef.h.
-// We want to use std::min and std::max
-#ifdef __cplusplus
-#define max max
-#define min min
-#endif
-
-#else
-
-#include <pthread.h>
-
-#endif // OS(WINDOWS)
-
-#include <sys/types.h>
-#include <fcntl.h>
-#if defined(__APPLE__)
-#include <regex.h>
-#endif
-
-
-#include <setjmp.h>
-
-#include <signal.h>
-#include <stdarg.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#if defined(__APPLE__)
-#include <unistd.h>
-#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__)
-#include <sys/param.h>
-#endif
-#include <sys/stat.h>
-#if defined(__APPLE__)
-#include <sys/time.h>
-#include <sys/resource.h>
-#endif
-
-#include <CoreFoundation/CoreFoundation.h>
-
-#if OS(WINDOWS)
-#include <windows.h>
-#else
-#include <CoreServices/CoreServices.h>
-#endif // OS(WINDOWS)
-
-#ifdef __OBJC__
-#import <Cocoa/Cocoa.h>
-#endif
-
-#ifdef __cplusplus
-#define new ("if you use new/delete make sure to include config.h at the top of the file"())
-#define delete ("if you use new/delete make sure to include config.h at the top of the file"())
-#endif
-
-/* When C++ exceptions are disabled, the C++ library defines |try| and |catch|
- * to allow C++ code that expects exceptions to build. These definitions
- * interfere with Objective-C++ uses of Objective-C exception handlers, which
- * use |@try| and |@catch|. As a workaround, undefine these macros. */
-#ifdef __OBJC__
-#undef try
-#undef catch
-#endif
-
« no previous file with comments | « Source/config.h ('k') | Source/core/WebCorePrefixMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698