Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: runtime/platform/globals.h

Issue 11411188: Fix floating point issues on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ndx_x, ndx_y -> index_x, index_y. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/platform/floating_point_win.cc ('k') | runtime/platform/platform_headers.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
39 #include <stdarg.h> 39 #include <stdarg.h>
40 #include <stddef.h> 40 #include <stddef.h>
41 #include <stdio.h> 41 #include <stdio.h>
42 #include <stdlib.h> 42 #include <stdlib.h>
43 #include <string.h> 43 #include <string.h>
44 #include <sys/types.h> 44 #include <sys/types.h>
45 45
46 #if defined(_WIN32) 46 #if defined(_WIN32)
47 #include "platform/c99_support_win.h" 47 #include "platform/c99_support_win.h"
48 #include "platform/inttypes_support_win.h" 48 #include "platform/inttypes_support_win.h"
49 #include "platform/floating_point_win.h"
49 #endif 50 #endif
50 51
52 #if !defined(_WIN32)
53 #include "platform/floating_point.h"
54 #endif
55
56
51 // Target OS detection. 57 // Target OS detection.
52 // for more information on predefined macros: 58 // for more information on predefined macros:
53 // - http://msdn.microsoft.com/en-us/library/b0084kay.aspx 59 // - http://msdn.microsoft.com/en-us/library/b0084kay.aspx
54 // - with gcc, run: "echo | gcc -E -dM -" 60 // - with gcc, run: "echo | gcc -E -dM -"
55 #if defined(__ANDROID__) 61 #if defined(__ANDROID__)
56 #define TARGET_OS_ANDROID 62 #define TARGET_OS_ANDROID
57 #elif defined(__linux__) || defined(__FreeBSD__) 63 #elif defined(__linux__) || defined(__FreeBSD__)
58 #define TARGET_OS_LINUX 1 64 #define TARGET_OS_LINUX 1
59 #elif defined(__APPLE__) 65 #elif defined(__APPLE__)
60 #define TARGET_OS_MACOS 1 66 #define TARGET_OS_MACOS 1
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // have an implicit 'this' argument, the arguments of such methods 367 // have an implicit 'this' argument, the arguments of such methods
362 // should be counted from two, not one." 368 // should be counted from two, not one."
363 // 369 //
364 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \ 370 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \
365 __attribute__((__format__(__printf__, string_index, first_to_check))) 371 __attribute__((__format__(__printf__, string_index, first_to_check)))
366 #else 372 #else
367 #define PRINTF_ATTRIBUTE(string_index, first_to_check) 373 #define PRINTF_ATTRIBUTE(string_index, first_to_check)
368 #endif 374 #endif
369 375
370 #endif // PLATFORM_GLOBALS_H_ 376 #endif // PLATFORM_GLOBALS_H_
OLDNEW
« no previous file with comments | « runtime/platform/floating_point_win.cc ('k') | runtime/platform/platform_headers.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698