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

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

Issue 84613002: Fix vm VS2013 compilation issue with c99_support_win.h. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | no next file » | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_C99_SUPPORT_WIN_H_ 5 #ifndef PLATFORM_C99_SUPPORT_WIN_H_
6 #define PLATFORM_C99_SUPPORT_WIN_H_ 6 #define PLATFORM_C99_SUPPORT_WIN_H_
7 7
8 // Visual C++ is missing a bunch of C99 math macros and 8 #if defined(_MSC_VER) && (_MSC_VER < 1800)
9 // functions. Define them here. 9
10 // Before Visual Studio 2013 Visual C++ was missing a bunch of C99 math macros
11 // and functions. Define them here.
10 12
11 #include <float.h> 13 #include <float.h>
12 #include <string.h> 14 #include <string.h>
13 15
14 static const unsigned __int64 kQuietNaNMask = 16 static const unsigned __int64 kQuietNaNMask =
15 static_cast<unsigned __int64>(0xfff) << 51; 17 static_cast<unsigned __int64>(0xfff) << 51;
16 18
17 19
18 #ifndef va_copy 20 #ifndef va_copy
19 #define va_copy(dst, src) (memmove(&(dst), &(src), sizeof(dst))) 21 #define va_copy(dst, src) (memmove(&(dst), &(src), sizeof(dst)))
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } else { 65 } else {
64 return intpart - 1; 66 return intpart - 1;
65 } 67 }
66 } 68 }
67 69
68 // Windows does not have strtoll defined. 70 // Windows does not have strtoll defined.
69 #if defined(_MSC_VER) 71 #if defined(_MSC_VER)
70 #define strtoll _strtoi64 72 #define strtoll _strtoi64
71 #endif 73 #endif
72 74
75 #endif
73 76
74 #endif // PLATFORM_C99_SUPPORT_WIN_H_ 77 #endif // PLATFORM_C99_SUPPORT_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698