| 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 #else | 116 #elif !defined(TARGET_OS_FUCHSIA) |
| 117 #error Automatic target os detection failed. | 117 #error Automatic target os detection failed. |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 | 120 |
| 121 // Setup product, release or debug build related macros. | 121 // Setup product, release or debug build related macros. |
| 122 #if defined(PRODUCT) && defined(DEBUG) | 122 #if defined(PRODUCT) && defined(DEBUG) |
| 123 #error Both PRODUCT and DEBUG defined. | 123 #error Both PRODUCT and DEBUG defined. |
| 124 #endif // defined(PRODUCT) && defined(DEBUG) | 124 #endif // defined(PRODUCT) && defined(DEBUG) |
| 125 | 125 |
| 126 #if defined(PRODUCT) | 126 #if defined(PRODUCT) |
| (...skipping 564 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 | 691 // 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 | 692 // optimizing compiler. Enable it for other modes (product, release) if needed |
| 693 // for debugging. | 693 // for debugging. |
| 694 #if defined(DEBUG) | 694 #if defined(DEBUG) |
| 695 #define TAG_IC_DATA | 695 #define TAG_IC_DATA |
| 696 #endif | 696 #endif |
| 697 | 697 |
| 698 } // namespace dart | 698 } // namespace dart |
| 699 | 699 |
| 700 #endif // PLATFORM_GLOBALS_H_ | 700 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |