| 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 SkPostConfig_DEFINED | 10 #ifndef SkPostConfig_DEFINED |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 #define SK_OVERRIDE | 367 #define SK_OVERRIDE |
| 368 #endif | 368 #endif |
| 369 #endif | 369 #endif |
| 370 | 370 |
| 371 ////////////////////////////////////////////////////////////////////// | 371 ////////////////////////////////////////////////////////////////////// |
| 372 | 372 |
| 373 #if !defined(SK_UNUSED) | 373 #if !defined(SK_UNUSED) |
| 374 #define SK_UNUSED SK_ATTRIBUTE(unused) | 374 #define SK_UNUSED SK_ATTRIBUTE(unused) |
| 375 #endif | 375 #endif |
| 376 | 376 |
| 377 #if !defined(SK_ATTR_DEPRECATED) |
| 378 // we ignore msg for now... |
| 379 #define SK_ATTR_DEPRECATED(msg) SK_ATTRIBUTE(deprecated) |
| 380 #endif |
| 381 |
| 377 ////////////////////////////////////////////////////////////////////// | 382 ////////////////////////////////////////////////////////////////////// |
| 378 | 383 |
| 379 #ifndef SK_PRINTF_LIKE | 384 #ifndef SK_PRINTF_LIKE |
| 380 #if defined(__clang__) || defined(__GNUC__) | 385 #if defined(__clang__) || defined(__GNUC__) |
| 381 #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B)))) | 386 #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B)))) |
| 382 #else | 387 #else |
| 383 #define SK_PRINTF_LIKE(A, B) | 388 #define SK_PRINTF_LIKE(A, B) |
| 384 #endif | 389 #endif |
| 385 #endif | 390 #endif |
| 386 | 391 |
| 387 ////////////////////////////////////////////////////////////////////// | 392 ////////////////////////////////////////////////////////////////////// |
| 388 | 393 |
| 389 #ifndef SK_SIZE_T_SPECIFIER | 394 #ifndef SK_SIZE_T_SPECIFIER |
| 390 #if defined(_MSC_VER) | 395 #if defined(_MSC_VER) |
| 391 #define SK_SIZE_T_SPECIFIER "%Iu" | 396 #define SK_SIZE_T_SPECIFIER "%Iu" |
| 392 #else | 397 #else |
| 393 #define SK_SIZE_T_SPECIFIER "%zu" | 398 #define SK_SIZE_T_SPECIFIER "%zu" |
| 394 #endif | 399 #endif |
| 395 #endif | 400 #endif |
| 396 | 401 |
| 397 ////////////////////////////////////////////////////////////////////// | 402 ////////////////////////////////////////////////////////////////////// |
| 398 | 403 |
| 399 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 404 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
| 400 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 | 405 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 |
| 401 #endif | 406 #endif |
| OLD | NEW |