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

Side by Side Diff: Source/WebCore/config.h

Issue 14238015: Move Source/WTF/wtf to Source/wtf (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2004, 2005, 2006, 2013 Apple Inc.
3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 */
21
22 #include <wtf/Platform.h>
23
24 #include <wtf/ExportMacros.h>
25
26 #ifdef __APPLE__
27 #define HAVE_FUNC_USLEEP 1
28 #endif /* __APPLE__ */
29
30 #if OS(WINDOWS)
31
32 #ifndef _WIN32_WINNT
33 #define _WIN32_WINNT 0x0502
34 #endif
35
36 #ifndef WINVER
37 #define WINVER 0x0502
38 #endif
39
40 // If we don't define these, they get defined in windef.h.
41 // We want to use std::min and std::max.
42 #ifndef max
43 #define max max
44 #endif
45 #ifndef min
46 #define min min
47 #endif
48
49 // CURL needs winsock, so don't prevent inclusion of it
50 #if !USE(CURL)
51 #ifndef _WINSOCKAPI_
52 #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
53 #endif
54 #endif
55
56 #endif /* OS(WINDOWS) */
57
58 #ifdef __cplusplus
59
60 // These undefs match up with defines in WebCorePrefix.h for Mac OS X.
61 // Helps us catch if anyone uses new or delete by accident in code and doesn't i nclude "config.h".
62 #undef new
63 #undef delete
64 #include <wtf/FastMalloc.h>
65
66 #include <ciso646>
67
68 #endif
69
70 #if COMPILER(MSVC)
71 #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1
72 #else
73 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1
74 #endif
75
76 // Chromium uses this file instead of JavaScriptCore/config.h to compile
77 // JavaScriptCore/wtf (chromium doesn't compile the rest of JSC). Therefore,
78 // this define is required.
79 #define WTF_CHANGES 1
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698