зеркало из https://github.com/mozilla/pjs.git
Fix to prevent build bustage on nebiros with Sun compilers.
The Sun compiler expects a specific format for the function used by the #pragma statement. It should return void and have no arguments. It also needs an initial function prototype. r=cls Fix for breakage for checkin for bug #40769.
This commit is contained in:
Родитель
7eb2df8b18
Коммит
7a1ed30f9b
|
@ -1120,9 +1120,11 @@ struct mybuf {
|
|||
};
|
||||
|
||||
|
||||
static void myinit();
|
||||
|
||||
#pragma init (myinit)
|
||||
|
||||
static int
|
||||
static void
|
||||
myinit()
|
||||
{
|
||||
|
||||
|
@ -1143,7 +1145,6 @@ myinit()
|
|||
#endif /*__GNUC__*/
|
||||
}
|
||||
initialized = 1;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1120,9 +1120,11 @@ struct mybuf {
|
|||
};
|
||||
|
||||
|
||||
static void myinit();
|
||||
|
||||
#pragma init (myinit)
|
||||
|
||||
static int
|
||||
static void
|
||||
myinit()
|
||||
{
|
||||
|
||||
|
@ -1143,7 +1145,6 @@ myinit()
|
|||
#endif /*__GNUC__*/
|
||||
}
|
||||
initialized = 1;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче