XP_MACOSX and DARWIN are not set in the shell, so use __APPLE__ (another follow-up for 465460, r=danderson).

This commit is contained in:
Andreas Gal 2008-12-17 22:58:02 -08:00
parent 227d3cd479
commit e1b7d49b7d

View File

@ -230,10 +230,10 @@ math_atan2(JSContext *cx, uintN argc, jsval *vp)
static inline jsdouble JS_FASTCALL
math_ceil_kernel(jsdouble x)
{
#if defined(XP_MACOSX) || defined(DARWIN)
#ifdef __APPLE__
if (x < 0 && x > -1.0)
return js_copysign(0, -1);
#endif
#endif
return ceil(x);
}