mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
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:
parent
227d3cd479
commit
e1b7d49b7d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user