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

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
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 #ifndef SK_ATTR_DEPRECATED
378 #define SK_ATTR_DEPRECATED(msg) SK_ATTRIBUTE(deprecated)
379 #endif
380
377 ////////////////////////////////////////////////////////////////////// 381 //////////////////////////////////////////////////////////////////////
378 382
379 #ifndef SK_PRINTF_LIKE 383 #ifndef SK_PRINTF_LIKE
380 #if defined(__clang__) || defined(__GNUC__) 384 #if defined(__clang__) || defined(__GNUC__)
381 #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B)))) 385 #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B))))
382 #else 386 #else
383 #define SK_PRINTF_LIKE(A, B) 387 #define SK_PRINTF_LIKE(A, B)
384 #endif 388 #endif
385 #endif 389 #endif
386 390
387 ////////////////////////////////////////////////////////////////////// 391 //////////////////////////////////////////////////////////////////////
388 392
389 #ifndef SK_SIZE_T_SPECIFIER 393 #ifndef SK_SIZE_T_SPECIFIER
390 #if defined(_MSC_VER) 394 #if defined(_MSC_VER)
391 #define SK_SIZE_T_SPECIFIER "%Iu" 395 #define SK_SIZE_T_SPECIFIER "%Iu"
392 #else 396 #else
393 #define SK_SIZE_T_SPECIFIER "%zu" 397 #define SK_SIZE_T_SPECIFIER "%zu"
394 #endif 398 #endif
395 #endif 399 #endif
396 400
397 ////////////////////////////////////////////////////////////////////// 401 //////////////////////////////////////////////////////////////////////
398 402
399 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 403 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
400 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 404 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1
401 #endif 405 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698