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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 #endif /* ARM */ | 268 #endif /* ARM */ |
269 | 269 |
270 /* ==== OS() - underlying operating system; only to be used for mandated low-lev
el services like | 270 /* ==== OS() - underlying operating system; only to be used for mandated low-lev
el services like |
271 virtual memory, not to choose a GUI toolkit ==== */ | 271 virtual memory, not to choose a GUI toolkit ==== */ |
272 | 272 |
273 /* OS(ANDROID) - Android */ | 273 /* OS(ANDROID) - Android */ |
274 #ifdef ANDROID | 274 #ifdef ANDROID |
275 #define WTF_OS_ANDROID 1 | 275 #define WTF_OS_ANDROID 1 |
276 #endif | 276 #endif |
277 | 277 |
278 /* OS(AIX) - AIX */ | |
279 #ifdef _AIX | |
280 #define WTF_OS_AIX 1 | |
281 #endif | |
282 | |
283 /* OS(DARWIN) - Any Darwin-based OS, including Mac OS X and iPhone OS */ | 278 /* OS(DARWIN) - Any Darwin-based OS, including Mac OS X and iPhone OS */ |
284 #ifdef __APPLE__ | 279 #ifdef __APPLE__ |
285 #define WTF_OS_DARWIN 1 | 280 #define WTF_OS_DARWIN 1 |
286 | 281 |
287 #include <Availability.h> | 282 #include <Availability.h> |
288 #include <AvailabilityMacros.h> | 283 #include <AvailabilityMacros.h> |
289 #include <TargetConditionals.h> | 284 #include <TargetConditionals.h> |
290 #endif | 285 #endif |
291 | 286 |
292 /* OS(FREEBSD) - FreeBSD */ | 287 /* OS(FREEBSD) - FreeBSD */ |
(...skipping 25 matching lines...) Expand all Loading... |
318 #if defined(sun) || defined(__sun) | 313 #if defined(sun) || defined(__sun) |
319 #define WTF_OS_SOLARIS 1 | 314 #define WTF_OS_SOLARIS 1 |
320 #endif | 315 #endif |
321 | 316 |
322 /* OS(WINDOWS) - Any version of Windows */ | 317 /* OS(WINDOWS) - Any version of Windows */ |
323 #if defined(WIN32) || defined(_WIN32) | 318 #if defined(WIN32) || defined(_WIN32) |
324 #define WTF_OS_WINDOWS 1 | 319 #define WTF_OS_WINDOWS 1 |
325 #endif | 320 #endif |
326 | 321 |
327 /* OS(UNIX) - Any Unix-like system */ | 322 /* OS(UNIX) - Any Unix-like system */ |
328 #if OS(AIX) \ | 323 #if OS(ANDROID) \ |
329 || OS(ANDROID) \ | |
330 || OS(DARWIN) \ | 324 || OS(DARWIN) \ |
331 || OS(FREEBSD) \ | 325 || OS(FREEBSD) \ |
332 || OS(HURD) \ | 326 || OS(HURD) \ |
333 || OS(LINUX) \ | 327 || OS(LINUX) \ |
334 || OS(NETBSD) \ | 328 || OS(NETBSD) \ |
335 || OS(OPENBSD) \ | 329 || OS(OPENBSD) \ |
336 || OS(SOLARIS) \ | 330 || OS(SOLARIS) \ |
337 || defined(unix) \ | 331 || defined(unix) \ |
338 || defined(__unix) \ | 332 || defined(__unix) \ |
339 || defined(__unix__) | 333 || defined(__unix__) |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 | 414 |
421 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) | 415 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) |
422 #define ENABLE_THREADING_LIBDISPATCH 1 | 416 #define ENABLE_THREADING_LIBDISPATCH 1 |
423 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) | 417 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) |
424 #define ENABLE_THREADING_OPENMP 1 | 418 #define ENABLE_THREADING_OPENMP 1 |
425 #elif !defined(THREADING_GENERIC) | 419 #elif !defined(THREADING_GENERIC) |
426 #define ENABLE_THREADING_GENERIC 1 | 420 #define ENABLE_THREADING_GENERIC 1 |
427 #endif | 421 #endif |
428 | 422 |
429 #endif /* WTF_Platform_h */ | 423 #endif /* WTF_Platform_h */ |
OLD | NEW |