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

Side by Side Diff: Source/wtf/Platform.h

Issue 14280003: Remove more unused marcos. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months 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
« no previous file with comments | « no previous file | Source/wtf/wtf.gyp » ('j') | Tools/TestWebKitAPI/PlatformWebView.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. 3 * Copyright (C) 2007-2009 Torch Mobile, Inc.
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 13 matching lines...) Expand all
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef WTF_Platform_h 28 #ifndef WTF_Platform_h
29 #define WTF_Platform_h 29 #define WTF_Platform_h
30 30
31 /* Include compiler specific macros */ 31 /* Include compiler specific macros */
32 #include <wtf/Compiler.h> 32 #include <wtf/Compiler.h>
33 33
34 /* ==== PLATFORM handles OS, operating environment, graphics API, and
35 CPU. This macro will be phased out in favor of platform adaptation
36 macros, policy decision macros, and top-level port definitions. ==== */
37 #define PLATFORM(WTF_FEATURE) (defined WTF_PLATFORM_##WTF_FEATURE && WTF_PLATFO RM_##WTF_FEATURE)
38
39
40 /* ==== Platform adaptation macros: these describe properties of the target envi ronment. ==== */ 34 /* ==== Platform adaptation macros: these describe properties of the target envi ronment. ==== */
41 35
42 /* CPU() - the target CPU architecture */ 36 /* CPU() - the target CPU architecture */
43 #define CPU(WTF_FEATURE) (defined WTF_CPU_##WTF_FEATURE && WTF_CPU_##WTF_FEATUR E) 37 #define CPU(WTF_FEATURE) (defined WTF_CPU_##WTF_FEATURE && WTF_CPU_##WTF_FEATUR E)
44 /* HAVE() - specific system features (headers, functions or similar) that are pr esent or not */ 38 /* HAVE() - specific system features (headers, functions or similar) that are pr esent or not */
45 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) 39 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE)
46 /* OS() - underlying operating system; only to be used for mandated low-level se rvices like 40 /* OS() - underlying operating system; only to be used for mandated low-level se rvices like
47 virtual memory, not to choose a GUI toolkit */ 41 virtual memory, not to choose a GUI toolkit */
48 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE) 42 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE)
49 43
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 #endif 338 #endif
345 339
346 /* OS(IOS) - iOS */ 340 /* OS(IOS) - iOS */
347 /* OS(MAC_OS_X) - Mac OS X (not including iOS) */ 341 /* OS(MAC_OS_X) - Mac OS X (not including iOS) */
348 #if OS(DARWIN) && ((defined(TARGET_OS_EMBEDDED) && TARGET_OS_EMBEDDED) \ 342 #if OS(DARWIN) && ((defined(TARGET_OS_EMBEDDED) && TARGET_OS_EMBEDDED) \
349 || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) \ 343 || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) \
350 || (defined(TARGET_IPHONE_SIMULATOR) && TARGET_IPHONE_SIMULATOR)) 344 || (defined(TARGET_IPHONE_SIMULATOR) && TARGET_IPHONE_SIMULATOR))
351 #define WTF_OS_IOS 1 345 #define WTF_OS_IOS 1
352 #elif OS(DARWIN) && defined(TARGET_OS_MAC) && TARGET_OS_MAC 346 #elif OS(DARWIN) && defined(TARGET_OS_MAC) && TARGET_OS_MAC
353 #define WTF_OS_MAC_OS_X 1 347 #define WTF_OS_MAC_OS_X 1
354
355 /* FIXME: These can be removed after sufficient time has passed since the remova l of BUILDING_ON / TARGETING macros. */
356
357 #define ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MIN_REQUIRED 0 / 0
358 #define ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MAX_ALLOWED 0 / 0
359
360 #define BUILDING_ON_LEOPARD ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MIN_REQUI RED
361 #define BUILDING_ON_SNOW_LEOPARD ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MIN_ REQUIRED
362 #define BUILDING_ON_LION ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MIN_REQUIRED
363
364 #define TARGETING_LEOPARD ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MAX_ALLOWED
365 #define TARGETING_SNOW_LEOPARD ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MAX_AL LOWED
366 #define TARGETING_LION ERROR_PLEASE_COMPARE_WITH_MAC_OS_X_VERSION_MAX_ALLOWED
367 #endif 348 #endif
368 349
369 /* OS(FREEBSD) - FreeBSD */ 350 /* OS(FREEBSD) - FreeBSD */
370 #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__ ) 351 #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__ )
371 #define WTF_OS_FREEBSD 1 352 #define WTF_OS_FREEBSD 1
372 #endif 353 #endif
373 354
374 /* OS(HURD) - GNU/Hurd */ 355 /* OS(HURD) - GNU/Hurd */
375 #ifdef __GNU__ 356 #ifdef __GNU__
376 #define WTF_OS_HURD 1 357 #define WTF_OS_HURD 1
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 || OS(QNX) \ 402 || OS(QNX) \
422 || OS(SOLARIS) \ 403 || OS(SOLARIS) \
423 || defined(unix) \ 404 || defined(unix) \
424 || defined(__unix) \ 405 || defined(__unix) \
425 || defined(__unix__) 406 || defined(__unix__)
426 #define WTF_OS_UNIX 1 407 #define WTF_OS_UNIX 1
427 #endif 408 #endif
428 409
429 /* Operating environments */ 410 /* Operating environments */
430 411
431 /* FIXME: This should go away since we're only building chromium now */
432 #define WTF_PLATFORM_CHROMIUM 1
433
434 /* Graphics engines */ 412 /* Graphics engines */
435 413
436 /* USE(SKIA) for Win/Linux/Mac/Android */
437 #if OS(DARWIN) 414 #if OS(DARWIN)
438 #define WTF_USE_SKIA 1
439 #define WTF_USE_ICCJPEG 1 415 #define WTF_USE_ICCJPEG 1
440 #define WTF_USE_QCMSLIB 1 416 #define WTF_USE_QCMSLIB 1
441 #elif OS(ANDROID) 417 #elif OS(ANDROID)
442 #define WTF_USE_SKIA 1
443 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 418 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1
444 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 419 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1
445 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 420 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1
446 #else 421 #else
447 #define WTF_USE_SKIA 1
448 #define WTF_USE_ICCJPEG 1 422 #define WTF_USE_ICCJPEG 1
449 #define WTF_USE_QCMSLIB 1 423 #define WTF_USE_QCMSLIB 1
450 #endif 424 #endif
451 425
452 /* On Windows, use QueryPerformanceCounter by default */ 426 /* On Windows, use QueryPerformanceCounter by default */
453 #if OS(WINDOWS) 427 #if OS(WINDOWS)
454 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1 428 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1
455 #endif 429 #endif
456 430
457 #define WTF_USE_ICU_UNICODE 1 431 #define WTF_USE_ICU_UNICODE 1
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 #define ENABLE_THREADING_OPENMP 1 528 #define ENABLE_THREADING_OPENMP 1
555 #elif !defined(THREADING_GENERIC) 529 #elif !defined(THREADING_GENERIC)
556 #define ENABLE_THREADING_GENERIC 1 530 #define ENABLE_THREADING_GENERIC 1
557 #endif 531 #endif
558 532
559 #if !defined(WTF_USE_ZLIB) 533 #if !defined(WTF_USE_ZLIB)
560 #define WTF_USE_ZLIB 1 534 #define WTF_USE_ZLIB 1
561 #endif 535 #endif
562 536
563 #endif /* WTF_Platform_h */ 537 #endif /* WTF_Platform_h */
OLDNEW
« no previous file with comments | « no previous file | Source/wtf/wtf.gyp » ('j') | Tools/TestWebKitAPI/PlatformWebView.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698