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 to enable platform independent printf. | 8 // __STDC_FORMAT_MACROS has to be defined to enable platform independent printf. |
9 #ifndef __STDC_FORMAT_MACROS | 9 #ifndef __STDC_FORMAT_MACROS |
10 #define __STDC_FORMAT_MACROS | 10 #define __STDC_FORMAT_MACROS |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #if !defined(_WIN32) | 27 #if !defined(_WIN32) |
28 #include <inttypes.h> | 28 #include <inttypes.h> |
29 #include <stdint.h> | 29 #include <stdint.h> |
30 #include <unistd.h> | 30 #include <unistd.h> |
31 #endif | 31 #endif |
32 | 32 |
33 #include <float.h> | 33 #include <float.h> |
34 #include <limits.h> | 34 #include <limits.h> |
35 #include <math.h> | 35 #include <math.h> |
36 #include <openssl/bn.h> | |
37 #include <stdarg.h> | 36 #include <stdarg.h> |
38 #include <stddef.h> | 37 #include <stddef.h> |
39 #include <stdio.h> | 38 #include <stdio.h> |
40 #include <stdlib.h> | 39 #include <stdlib.h> |
41 #include <string.h> | 40 #include <string.h> |
42 #include <sys/types.h> | 41 #include <sys/types.h> |
43 #include <cstdlib> | 42 #include <cstdlib> |
44 #include <sstream> | 43 #include <sstream> |
45 | 44 |
46 #if defined(_WIN32) | 45 #if defined(_WIN32) |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // separate lines with body in {}s). | 337 // separate lines with body in {}s). |
339 # define TEMP_FAILURE_RETRY(expression) \ | 338 # define TEMP_FAILURE_RETRY(expression) \ |
340 ({ int64_t __result; \ | 339 ({ int64_t __result; \ |
341 do { \ | 340 do { \ |
342 __result = (int64_t) (expression); \ | 341 __result = (int64_t) (expression); \ |
343 } while (__result == -1L && errno == EINTR); \ | 342 } while (__result == -1L && errno == EINTR); \ |
344 __result; }) | 343 __result; }) |
345 #endif | 344 #endif |
346 | 345 |
347 #endif // PLATFORM_GLOBALS_H_ | 346 #endif // PLATFORM_GLOBALS_H_ |
OLD | NEW |