mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
ccf3a3a8ca
commit
049a2966bf
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user