| OLD | NEW |
| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 /* OS(NETBSD) - NetBSD */ | 349 /* OS(NETBSD) - NetBSD */ |
| 350 #if defined(__NetBSD__) | 350 #if defined(__NetBSD__) |
| 351 #define WTF_OS_NETBSD 1 | 351 #define WTF_OS_NETBSD 1 |
| 352 #endif | 352 #endif |
| 353 | 353 |
| 354 /* OS(OPENBSD) - OpenBSD */ | 354 /* OS(OPENBSD) - OpenBSD */ |
| 355 #ifdef __OpenBSD__ | 355 #ifdef __OpenBSD__ |
| 356 #define WTF_OS_OPENBSD 1 | 356 #define WTF_OS_OPENBSD 1 |
| 357 #endif | 357 #endif |
| 358 | 358 |
| 359 /* OS(QNX) - QNX */ | |
| 360 #if defined(__QNXNTO__) | |
| 361 #define WTF_OS_QNX 1 | |
| 362 #endif | |
| 363 | |
| 364 /* OS(SOLARIS) - Solaris */ | 359 /* OS(SOLARIS) - Solaris */ |
| 365 #if defined(sun) || defined(__sun) | 360 #if defined(sun) || defined(__sun) |
| 366 #define WTF_OS_SOLARIS 1 | 361 #define WTF_OS_SOLARIS 1 |
| 367 #endif | 362 #endif |
| 368 | 363 |
| 369 /* OS(WINDOWS) - Any version of Windows */ | 364 /* OS(WINDOWS) - Any version of Windows */ |
| 370 #if defined(WIN32) || defined(_WIN32) | 365 #if defined(WIN32) || defined(_WIN32) |
| 371 #define WTF_OS_WINDOWS 1 | 366 #define WTF_OS_WINDOWS 1 |
| 372 #endif | 367 #endif |
| 373 | 368 |
| 374 #define WTF_OS_WIN ERROR "USE WINDOWS WITH OS NOT WIN" | 369 #define WTF_OS_WIN ERROR "USE WINDOWS WITH OS NOT WIN" |
| 375 #define WTF_OS_MAC ERROR "USE MAC_OS_X WITH OS NOT MAC" | 370 #define WTF_OS_MAC ERROR "USE MAC_OS_X WITH OS NOT MAC" |
| 376 | 371 |
| 377 /* OS(UNIX) - Any Unix-like system */ | 372 /* OS(UNIX) - Any Unix-like system */ |
| 378 #if OS(AIX) \ | 373 #if OS(AIX) \ |
| 379 || OS(ANDROID) \ | 374 || OS(ANDROID) \ |
| 380 || OS(DARWIN) \ | 375 || OS(DARWIN) \ |
| 381 || OS(FREEBSD) \ | 376 || OS(FREEBSD) \ |
| 382 || OS(HURD) \ | 377 || OS(HURD) \ |
| 383 || OS(LINUX) \ | 378 || OS(LINUX) \ |
| 384 || OS(NETBSD) \ | 379 || OS(NETBSD) \ |
| 385 || OS(OPENBSD) \ | 380 || OS(OPENBSD) \ |
| 386 || OS(QNX) \ | |
| 387 || OS(SOLARIS) \ | 381 || OS(SOLARIS) \ |
| 388 || defined(unix) \ | 382 || defined(unix) \ |
| 389 || defined(__unix) \ | 383 || defined(__unix) \ |
| 390 || defined(__unix__) | 384 || defined(__unix__) |
| 391 #define WTF_OS_UNIX 1 | 385 #define WTF_OS_UNIX 1 |
| 392 #endif | 386 #endif |
| 393 | 387 |
| 394 /* Operating environments */ | 388 /* Operating environments */ |
| 395 | 389 |
| 396 /* Graphics engines */ | 390 /* Graphics engines */ |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 442 |
| 449 #if OS(UNIX) && !OS(ANDROID) | 443 #if OS(UNIX) && !OS(ANDROID) |
| 450 #define HAVE_LANGINFO_H 1 | 444 #define HAVE_LANGINFO_H 1 |
| 451 #endif | 445 #endif |
| 452 | 446 |
| 453 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) | 447 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) |
| 454 #define HAVE_PTHREAD_NP_H 1 | 448 #define HAVE_PTHREAD_NP_H 1 |
| 455 #endif | 449 #endif |
| 456 | 450 |
| 457 #if !defined(HAVE_VASPRINTF) | 451 #if !defined(HAVE_VASPRINTF) |
| 458 #if !COMPILER(MSVC) && !COMPILER(MINGW) && !(COMPILER(GCC) && OS(QNX)) | 452 #if !COMPILER(MSVC) && !COMPILER(MINGW) |
| 459 #define HAVE_VASPRINTF 1 | 453 #define HAVE_VASPRINTF 1 |
| 460 #endif | 454 #endif |
| 461 #endif | 455 #endif |
| 462 | 456 |
| 463 #if !defined(HAVE_STRNSTR) | 457 #if !defined(HAVE_STRNSTR) |
| 464 #if OS(DARWIN) || (OS(FREEBSD) && !defined(__GLIBC__)) | 458 #if OS(DARWIN) || (OS(FREEBSD) && !defined(__GLIBC__)) |
| 465 #define HAVE_STRNSTR 1 | 459 #define HAVE_STRNSTR 1 |
| 466 #endif | 460 #endif |
| 467 #endif | 461 #endif |
| 468 | 462 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 | 500 |
| 507 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) | 501 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) |
| 508 #define ENABLE_THREADING_LIBDISPATCH 1 | 502 #define ENABLE_THREADING_LIBDISPATCH 1 |
| 509 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) | 503 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) |
| 510 #define ENABLE_THREADING_OPENMP 1 | 504 #define ENABLE_THREADING_OPENMP 1 |
| 511 #elif !defined(THREADING_GENERIC) | 505 #elif !defined(THREADING_GENERIC) |
| 512 #define ENABLE_THREADING_GENERIC 1 | 506 #define ENABLE_THREADING_GENERIC 1 |
| 513 #endif | 507 #endif |
| 514 | 508 |
| 515 #endif /* WTF_Platform_h */ | 509 #endif /* WTF_Platform_h */ |
| OLD | NEW |