| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PLATFORM_GLOBALS_H_ | 5 #ifndef PLATFORM_GLOBALS_H_ |
| 6 #define PLATFORM_GLOBALS_H_ | 6 #define PLATFORM_GLOBALS_H_ |
| 7 | 7 |
| 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to | 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to |
| 9 // enable platform independent printf format specifiers. | 9 // enable platform independent printf format specifiers. |
| 10 #ifndef __STDC_FORMAT_MACROS | 10 #ifndef __STDC_FORMAT_MACROS |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // '#if defined(TARGET_OS_IOS)'. TARGET_OS_IOS is defined to be 0 in | 106 // '#if defined(TARGET_OS_IOS)'. TARGET_OS_IOS is defined to be 0 in |
| 107 // XCode >= 7.0. See Issue #24453. | 107 // XCode >= 7.0. See Issue #24453. |
| 108 #define TARGET_OS_IOS 1 | 108 #define TARGET_OS_IOS 1 |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 #elif defined(_WIN32) | 111 #elif defined(_WIN32) |
| 112 | 112 |
| 113 // Windows, both 32- and 64-bit, regardless of the check for _WIN32. | 113 // Windows, both 32- and 64-bit, regardless of the check for _WIN32. |
| 114 #define TARGET_OS_WINDOWS 1 | 114 #define TARGET_OS_WINDOWS 1 |
| 115 | 115 |
| 116 #elif defined(__Fuchsia__) |
| 117 #define TARGET_OS_FUCHSIA |
| 118 |
| 116 #elif !defined(TARGET_OS_FUCHSIA) | 119 #elif !defined(TARGET_OS_FUCHSIA) |
| 117 #error Automatic target os detection failed. | 120 #error Automatic target os detection failed. |
| 118 #endif | 121 #endif |
| 119 | 122 |
| 120 | 123 |
| 121 // Setup product, release or debug build related macros. | 124 // Setup product, release or debug build related macros. |
| 122 #if defined(PRODUCT) && defined(DEBUG) | 125 #if defined(PRODUCT) && defined(DEBUG) |
| 123 #error Both PRODUCT and DEBUG defined. | 126 #error Both PRODUCT and DEBUG defined. |
| 124 #endif // defined(PRODUCT) && defined(DEBUG) | 127 #endif // defined(PRODUCT) && defined(DEBUG) |
| 125 | 128 |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 // tag in the ICData and check it when recreating the flow graph in | 694 // tag in the ICData and check it when recreating the flow graph in |
| 692 // optimizing compiler. Enable it for other modes (product, release) if needed | 695 // optimizing compiler. Enable it for other modes (product, release) if needed |
| 693 // for debugging. | 696 // for debugging. |
| 694 #if defined(DEBUG) | 697 #if defined(DEBUG) |
| 695 #define TAG_IC_DATA | 698 #define TAG_IC_DATA |
| 696 #endif | 699 #endif |
| 697 | 700 |
| 698 } // namespace dart | 701 } // namespace dart |
| 699 | 702 |
| 700 #endif // PLATFORM_GLOBALS_H_ | 703 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |