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

Side by Side Diff: Source/config.h

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2013 Apple Inc. 2 * Copyright (C) 2004, 2005, 2006, 2013 Apple Inc.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * Copyright (C) 2007-2009 Torch Mobile, Inc. 4 * Copyright (C) 2007-2009 Torch Mobile, Inc.
5 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 /* OS(NETBSD) - NetBSD */ 69 /* OS(NETBSD) - NetBSD */
70 #if defined(__NetBSD__) 70 #if defined(__NetBSD__)
71 #define WTF_OS_NETBSD 1 71 #define WTF_OS_NETBSD 1
72 #endif 72 #endif
73 73
74 /* OS(OPENBSD) - OpenBSD */ 74 /* OS(OPENBSD) - OpenBSD */
75 #ifdef __OpenBSD__ 75 #ifdef __OpenBSD__
76 #define WTF_OS_OPENBSD 1 76 #define WTF_OS_OPENBSD 1
77 #endif 77 #endif
78 78
79 /* OS(WINDOWS) - Any version of Windows */ 79 /* OS(WIN) - Any version of Windows */
80 #if defined(WIN32) || defined(_WIN32) 80 #if defined(WIN32) || defined(_WIN32)
81 #define WTF_OS_WINDOWS 1 81 #define WTF_OS_WIN 1
82 #endif 82 #endif
83 83
84 /* OS(UNIX) - Any Unix-like system */ 84 /* OS(UNIX) - Any Unix-like system */
85 #if OS(ANDROID) \ 85 #if OS(ANDROID) \
86 || OS(MACOSX) \ 86 || OS(MACOSX) \
87 || OS(FREEBSD) \ 87 || OS(FREEBSD) \
88 || OS(LINUX) \ 88 || OS(LINUX) \
89 || OS(NETBSD) \ 89 || OS(NETBSD) \
90 || OS(OPENBSD) \ 90 || OS(OPENBSD) \
91 || defined(unix) \ 91 || defined(unix) \
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #define HAVE_SYS_TIME_H 1 126 #define HAVE_SYS_TIME_H 1
127 #define WTF_USE_PTHREADS 1 127 #define WTF_USE_PTHREADS 1
128 #endif /* OS(UNIX) */ 128 #endif /* OS(UNIX) */
129 129
130 #if !defined(HAVE_VASPRINTF) 130 #if !defined(HAVE_VASPRINTF)
131 #if !COMPILER(MSVC) 131 #if !COMPILER(MSVC)
132 #define HAVE_VASPRINTF 1 132 #define HAVE_VASPRINTF 1
133 #endif 133 #endif
134 #endif 134 #endif
135 135
136 #if !OS(WINDOWS) && !OS(ANDROID) 136 #if !OS(WIN) && !OS(ANDROID)
137 #define HAVE_TM_GMTOFF 1 137 #define HAVE_TM_GMTOFF 1
138 #define HAVE_TM_ZONE 1 138 #define HAVE_TM_ZONE 1
139 #define HAVE_TIMEGM 1 139 #define HAVE_TIMEGM 1
140 #endif 140 #endif
141 141
142 #if OS(MACOSX) 142 #if OS(MACOSX)
143 #define HAVE_DISPATCH_H 1 143 #define HAVE_DISPATCH_H 1
144 #define HAVE_PTHREAD_SETNAME_NP 1 144 #define HAVE_PTHREAD_SETNAME_NP 1
145 #endif /* OS(MACOSX) */ 145 #endif /* OS(MACOSX) */
146 146
147 #if OS(WINDOWS) 147 #if OS(WIN)
148 148
149 // If we don't define these, they get defined in windef.h. 149 // If we don't define these, they get defined in windef.h.
150 // We want to use std::min and std::max. 150 // We want to use std::min and std::max.
151 #ifndef max 151 #ifndef max
152 #define max max 152 #define max max
153 #endif 153 #endif
154 #ifndef min 154 #ifndef min
155 #define min min 155 #define min min
156 #endif 156 #endif
157 157
158 #endif /* OS(WINDOWS) */ 158 #endif /* OS(WIN) */
159 159
160 #ifdef __cplusplus 160 #ifdef __cplusplus
161 161
162 // These undefs match up with defines in WebCorePrefixMac.h for Mac OS X. 162 // These undefs match up with defines in WebCorePrefixMac.h for Mac OS X.
163 // Helps us catch if anyone uses new or delete by accident in code and doesn't i nclude "config.h". 163 // Helps us catch if anyone uses new or delete by accident in code and doesn't i nclude "config.h".
164 #undef new 164 #undef new
165 #undef delete 165 #undef delete
166 #include "wtf/FastMalloc.h" 166 #include "wtf/FastMalloc.h"
167 167
168 #include <ciso646> 168 #include <ciso646>
169 169
170 #endif 170 #endif
171 171
172 #if COMPILER(MSVC) 172 #if COMPILER(MSVC)
173 #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1 173 #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1
174 #else 174 #else
175 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 175 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1
176 #endif 176 #endif
177 177
178 #ifndef __STDC_FORMAT_MACROS 178 #ifndef __STDC_FORMAT_MACROS
179 #define __STDC_FORMAT_MACROS 1 179 #define __STDC_FORMAT_MACROS 1
180 #endif 180 #endif
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698