OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2007-2008 the V8 project authors. All rights reserved. | 2 * Copyright 2007-2008 the V8 project authors. All rights reserved. |
3 * Redistribution and use in source and binary forms, with or without | 3 * Redistribution and use in source and binary forms, with or without |
4 * modification, are permitted provided that the following conditions are | 4 * modification, are permitted provided that the following conditions are |
5 * met: | 5 * met: |
6 * | 6 * |
7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above | 9 * * Redistributions in binary form must reproduce the above |
10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 */ | 70 */ |
71 #if defined(WIN32) && defined(_DLL) | 71 #if defined(WIN32) && defined(_DLL) |
72 #include "stdlib.h" | 72 #include "stdlib.h" |
73 #endif | 73 #endif |
74 | 74 |
75 /* For MinGW, turn on __NO_ISOCEXT so that its strtod doesn't get added */ | 75 /* For MinGW, turn on __NO_ISOCEXT so that its strtod doesn't get added */ |
76 #ifdef __MINGW32__ | 76 #ifdef __MINGW32__ |
77 #define __NO_ISOCEXT | 77 #define __NO_ISOCEXT |
78 #endif /* __MINGW32__ */ | 78 #endif /* __MINGW32__ */ |
79 | 79 |
| 80 /* On 64-bit systems, we need to make sure that a Long is only 32 bits. */ |
| 81 #ifdef V8_TARGET_ARCH_X64 |
| 82 #define Long int |
| 83 #endif /* V8_TARGET_ARCH_X64 */ |
| 84 |
80 /* Make sure we use the David M. Gay version of strtod(). On Linux, we | 85 /* Make sure we use the David M. Gay version of strtod(). On Linux, we |
81 * cannot use the same name (maybe the function does not have weak | 86 * cannot use the same name (maybe the function does not have weak |
82 * linkage?). */ | 87 * linkage?). */ |
83 #define strtod gay_strtod | 88 #define strtod gay_strtod |
84 #include "third_party/dtoa/dtoa.c" | 89 #include "third_party/dtoa/dtoa.c" |
OLD | NEW |