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

Side by Side Diff: sky/engine/config.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 * 21 *
22 */ 22 */
23 23
24 /* Include compiler specific macros */ 24 /* Include compiler specific macros */
25 #include "wtf/Compiler.h" 25 #include "wtf/Compiler.h"
26 26
27 #if COMPILER(MSVC)
28 #define _USE_MATH_DEFINES // Make math.h behave like other platforms.
29 #endif
30
27 /* ==== Platform adaptation macros: these describe properties of the target envi ronment. ==== */ 31 /* ==== Platform adaptation macros: these describe properties of the target envi ronment. ==== */
28 32
29 /* HAVE() - specific system features (headers, functions or similar) that are pr esent or not */ 33 /* HAVE() - specific system features (headers, functions or similar) that are pr esent or not */
30 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) 34 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE)
31 /* OS() - underlying operating system; only to be used for mandated low-level se rvices like 35 /* OS() - underlying operating system; only to be used for mandated low-level se rvices like
32 virtual memory, not to choose a GUI toolkit */ 36 virtual memory, not to choose a GUI toolkit */
33 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE) 37 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE)
34 38
35 /* ==== Policy decision macros: these define policy choices for a particular por t. ==== */ 39 /* ==== Policy decision macros: these define policy choices for a particular por t. ==== */
36 40
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 82
79 #ifdef __cplusplus 83 #ifdef __cplusplus
80 84
81 // Helps us catch if anyone uses new or delete by accident in code and doesn't i nclude "config.h". 85 // Helps us catch if anyone uses new or delete by accident in code and doesn't i nclude "config.h".
82 #undef new 86 #undef new
83 #undef delete 87 #undef delete
84 #include <ciso646> 88 #include <ciso646>
85 #include <cstddef> 89 #include <cstddef>
86 90
87 #endif 91 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698