mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Linux build issues.
This commit is contained in:
parent
d45c95c085
commit
10603fb685
@ -100,14 +100,13 @@ namespace fd {
|
||||
inline double copysign(double x, double y) { return ::copysign(x, y); }
|
||||
}
|
||||
|
||||
double fd_asin __P((double));
|
||||
double fd_acos __P((double));
|
||||
double fd_exp __P((double));
|
||||
double fd_log __P((double));
|
||||
double fd_pow __P((double, double));
|
||||
|
||||
namespace fd {
|
||||
extern "C" {
|
||||
double fd_asin __P((double));
|
||||
double fd_acos __P((double));
|
||||
double fd_exp __P((double));
|
||||
double fd_log __P((double));
|
||||
double fd_pow __P((double, double));
|
||||
}
|
||||
inline double asin(double x) { return fd_asin(x); }
|
||||
inline double acos(double x) { return fd_acos(x); }
|
||||
inline double exp(double x) { return fd_exp(x); }
|
||||
|
@ -4630,8 +4630,8 @@ deleteClassProperty:
|
||||
|
||||
js2val argumentsVal = OBJECT_TO_JS2VAL(new ArrayInstance(meta->arrayClass));
|
||||
ArrayInstance *arrInst = checked_cast<ArrayInstance *>(JS2VAL_TO_OBJECT(argumentsVal));
|
||||
|
||||
for (uint32 i = 0; ((i < argCount) && (i < plural->positionalCount)); i++) {
|
||||
uint32 i;
|
||||
for (i = 0; ((i < argCount) && (i < plural->positionalCount)); i++) {
|
||||
ASSERT(plural->positional[i]->cloneContent);
|
||||
ASSERT(plural->positional[i]->cloneContent->kind == Member::Variable);
|
||||
(checked_cast<Variable *>(plural->positional[i]->cloneContent))->value = argBase[i];
|
||||
|
@ -188,12 +188,6 @@ size_t JS::LineReader::readLine(string &str)
|
||||
crWasLast = false;
|
||||
|
||||
str.resize(0);
|
||||
#ifdef XP_UNIX
|
||||
char line[256];
|
||||
if (fgets(line, sizeof line, file) == NULL)
|
||||
return 0;
|
||||
str = line;
|
||||
#else
|
||||
while ((ch = getc(in)) != EOF) {
|
||||
if (ch == '\n') {
|
||||
if (!str.size() && oldCRWasLast)
|
||||
@ -208,7 +202,6 @@ size_t JS::LineReader::readLine(string &str)
|
||||
}
|
||||
str += static_cast<char>(ch);
|
||||
}
|
||||
#endif
|
||||
return str.size();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user