| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebCommon_h | 31 #ifndef WebCommon_h |
| 32 #define WebCommon_h | 32 #define WebCommon_h |
| 33 | 33 |
| 34 #if !defined(WEBKIT_IMPLEMENTATION) | 34 #if !defined(WEBKIT_IMPLEMENTATION) |
| 35 #define WEBKIT_IMPLEMENTATION 0 | 35 #define WEBKIT_IMPLEMENTATION 0 |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #if defined(WEBKIT_DLL) | 38 #if defined(COMPONENT_BUILD) |
| 39 #if defined(WIN32) | 39 #if defined(WIN32) |
| 40 #if WEBKIT_IMPLEMENTATION | 40 #if WEBKIT_IMPLEMENTATION |
| 41 #define WEBKIT_EXPORT __declspec(dllexport) | 41 #define WEBKIT_EXPORT __declspec(dllexport) |
| 42 #else // WEBKIT_IMPLEMENTATION | 42 #else // WEBKIT_IMPLEMENTATION |
| 43 #define WEBKIT_EXPORT __declspec(dllimport) | 43 #define WEBKIT_EXPORT __declspec(dllimport) |
| 44 #endif | 44 #endif |
| 45 #else // defined(WIN32) | 45 #else // defined(WIN32) |
| 46 #define WEBKIT_EXPORT __attribute__((visibility("default"))) | 46 #define WEBKIT_EXPORT __attribute__((visibility("default"))) |
| 47 #endif | 47 #endif |
| 48 #else // defined(WEBKIT_DLL) | 48 #else // defined(COMPONENT_BUILD) |
| 49 #define WEBKIT_EXPORT | 49 #define WEBKIT_EXPORT |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 #if !defined(BLINK_COMMON_IMPLEMENTATION) | 52 #if !defined(BLINK_COMMON_IMPLEMENTATION) |
| 53 #define BLINK_COMMON_IMPLEMENTATION 0 | 53 #define BLINK_COMMON_IMPLEMENTATION 0 |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 #if defined(COMPONENT_BUILD) | 56 #if defined(COMPONENT_BUILD) |
| 57 #if defined(WIN32) | 57 #if defined(WIN32) |
| 58 #if BLINK_COMMON_IMPLEMENTATION | 58 #if BLINK_COMMON_IMPLEMENTATION |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 #else | 106 #else |
| 107 #define WEBKIT_ASSERT(assertion) do { \ | 107 #define WEBKIT_ASSERT(assertion) do { \ |
| 108 if (!(assertion)) \ | 108 if (!(assertion)) \ |
| 109 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ | 109 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ |
| 110 } while (0) | 110 } while (0) |
| 111 #endif | 111 #endif |
| 112 | 112 |
| 113 #define WEBKIT_ASSERT_NOT_REACHED() WEBKIT_ASSERT(0) | 113 #define WEBKIT_ASSERT_NOT_REACHED() WEBKIT_ASSERT(0) |
| 114 | 114 |
| 115 #endif | 115 #endif |
| OLD | NEW |