mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
BeOS build fixes. Bug #34553
This commit is contained in:
parent
1d0daf3031
commit
fc6c8a2097
@ -527,8 +527,7 @@ case "$target" in
|
||||
TK_LIBS='-lbe -lroot'
|
||||
MOZ_TIMER_LIBS='$(DIST)/lib/libtimer_beos.so'
|
||||
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wno-multichar"
|
||||
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-multichar -Wno-ctor-dtor-pr
|
||||
ivacy"
|
||||
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy"
|
||||
;;
|
||||
|
||||
*-bsdi*)
|
||||
|
@ -108,29 +108,25 @@ nsresult nsGfxFactoryBeOS::CreateInstance(nsISupports *aOuter,
|
||||
nsISupports *inst = nsnull;
|
||||
|
||||
if (mClassID.Equals(kCFontMetrics)) {
|
||||
inst = (nsISupports *)new nsFontMetricsBeOS();
|
||||
NS_NEWXPCOM(inst, nsFontMetricsBeOS);
|
||||
}
|
||||
else if (mClassID.Equals(kCDeviceContext)) {
|
||||
inst = (nsISupports *)new nsDeviceContextBeOS();
|
||||
NS_NEWXPCOM(inst, nsDeviceContextBeOS);
|
||||
}
|
||||
else if (mClassID.Equals(kCRenderingContext)) {
|
||||
inst = (nsISupports *)new nsRenderingContextBeOS();
|
||||
NS_NEWXPCOM(inst, nsDeviceContextBeOS);
|
||||
}
|
||||
else if (mClassID.Equals(kCImage)) {
|
||||
inst = (nsISupports *)new nsImageBeOS();
|
||||
NS_NEWXPCOM(inst, nsImageBeOS);
|
||||
}
|
||||
else if (mClassID.Equals(kCRegion)) {
|
||||
inst = (nsISupports *)new nsRegionBeOS();
|
||||
NS_NEWXPCOM(inst, nsRegionBeOS);
|
||||
}
|
||||
else if (mClassID.Equals(kCDeviceContextSpec)) {
|
||||
nsDeviceContextSpecBeOS* dcs;
|
||||
NS_NEWXPCOM(dcs, nsDeviceContextSpecBeOS);
|
||||
inst = (nsISupports *)dcs;
|
||||
NS_NEWXPCOM(inst, nsDeviceContextSpecBeOS);
|
||||
}
|
||||
else if (mClassID.Equals(kCDeviceContextSpecFactory)) {
|
||||
nsDeviceContextSpecFactoryBeOS* dcs;
|
||||
NS_NEWXPCOM(dcs, nsDeviceContextSpecFactoryBeOS);
|
||||
inst = (nsISupports *)dcs;
|
||||
NS_NEWXPCOM(inst, nsDeviceContextSpecFactoryBeOS);
|
||||
}
|
||||
|
||||
if (inst == NULL) {
|
||||
|
@ -449,6 +449,7 @@ nsresult nsDll::Shutdown(void)
|
||||
|
||||
void nsDll::BreakAfterLoad(const char *nsprPath)
|
||||
{
|
||||
#ifndef XP_BEOS
|
||||
#ifdef DEBUG
|
||||
static PRBool firstTime = PR_TRUE;
|
||||
static nsCString breakList[16];
|
||||
@ -496,5 +497,6 @@ void nsDll::BreakAfterLoad(const char *nsprPath)
|
||||
#endif
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
#endif /* !XP_BEOS */
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user