Chromium Code Reviews| Index: src/platform.h |
| diff --git a/src/platform.h b/src/platform.h |
| index 75e557cb443c0ff87228188c3c92c7fb8b358057..c2fb8b0799ff57f956b00c362e2aa1e1fb942054 100644 |
| --- a/src/platform.h |
| +++ b/src/platform.h |
| @@ -44,6 +44,12 @@ |
| #ifndef V8_PLATFORM_H_ |
| #define V8_PLATFORM_H_ |
| +#ifdef __sun |
| +// On Solaris, to get isinf, INFINITY, fpclassify and other macros one needs |
| +// to define this symbol |
| +#define __C99FEATURES__ 1 |
| +#endif |
| + |
| #define V8_INFINITY INFINITY |
| // Windows specific stuff. |