OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPreConfig_DEFINED | 10 #ifndef SkPreConfig_DEFINED |
11 #define SkPreConfig_DEFINED | 11 #define SkPreConfig_DEFINED |
12 | 12 |
13 #ifdef WEBKIT_VERSION_MIN_REQUIRED | 13 #ifdef WEBKIT_VERSION_MIN_REQUIRED |
14 #include "config.h" | 14 #include "config.h" |
15 #endif | 15 #endif |
16 | 16 |
| 17 // Allows embedders that want to disable macros that take arguments to just |
| 18 // define that symbol to be one of these |
| 19 // |
| 20 #define SK_NOTHING_ARG1(arg1) |
| 21 #define SK_NOTHING_ARG2(arg1, arg2) |
| 22 #define SK_NOTHING_ARG3(arg1, arg2, arg3) |
| 23 |
17 ////////////////////////////////////////////////////////////////////// | 24 ////////////////////////////////////////////////////////////////////// |
18 | 25 |
19 #if !defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_IOS) && !defined(SK_
BUILD_FOR_PALM) && !defined(SK_BUILD_FOR_WINCE) && !defined(SK_BUILD_FOR_WIN32)
&& !defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_MAC) && !defined(SK_BUIL
D_FOR_SDL) && !defined(SK_BUILD_FOR_BREW) && !defined(SK_BUILD_FOR_NACL) | 26 #if !defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_IOS) && !defined(SK_
BUILD_FOR_PALM) && !defined(SK_BUILD_FOR_WINCE) && !defined(SK_BUILD_FOR_WIN32)
&& !defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_MAC) && !defined(SK_BUIL
D_FOR_SDL) && !defined(SK_BUILD_FOR_BREW) && !defined(SK_BUILD_FOR_NACL) |
20 | 27 |
21 #ifdef __APPLE__ | 28 #ifdef __APPLE__ |
22 #include "TargetConditionals.h" | 29 #include "TargetConditionals.h" |
23 #endif | 30 #endif |
24 | 31 |
25 #if defined(PALMOS_SDK_VERSION) | 32 #if defined(PALMOS_SDK_VERSION) |
26 #define SK_BUILD_FOR_PALM | 33 #define SK_BUILD_FOR_PALM |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 * | 240 * |
234 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 241 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
235 */ | 242 */ |
236 #if SK_HAS_ATTRIBUTE(optimize) | 243 #if SK_HAS_ATTRIBUTE(optimize) |
237 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 244 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
238 #else | 245 #else |
239 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 246 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
240 #endif | 247 #endif |
241 | 248 |
242 #endif | 249 #endif |
OLD | NEW |