BeOS build fixes. Bug #34553

This commit is contained in:
cls%seawood.org 2000-04-12 06:20:59 +00:00
parent 1d0daf3031
commit fc6c8a2097
4 changed files with 308 additions and 312 deletions

597
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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*)

View File

@ -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) {

View File

@ -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;
}