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

Side by Side Diff: include/core/SkPostConfig.h

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkPoint.h ('k') | include/core/SkPreConfig.h » ('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 /* 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
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
OLDNEW
« no previous file with comments | « include/core/SkPoint.h ('k') | include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698