Bustage fix for older gcc versions

This commit is contained in:
bryner%brianryner.com 2004-07-29 21:00:58 +00:00
parent 652a45f1d5
commit 8824f02983
3 changed files with 21 additions and 3 deletions

View File

@ -115,10 +115,16 @@ const PRUint8 kPresContext_DefaultFixedFont_ID = 0x01; // kGenericFont_moz_fi
// An interface for presentation contexts. Presentation contexts are
// objects that provide an outer context for a presentation shell.
class nsIPresContext : public nsIObserver {
// hack to make egcs / gcc 2.95.2 happy
class nsIPresContext_base : public nsIObserver
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRESCONTEXT_IID)
};
class nsIPresContext : public nsIPresContext_base {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW

View File

@ -115,10 +115,16 @@ const PRUint8 kPresContext_DefaultFixedFont_ID = 0x01; // kGenericFont_moz_fi
// An interface for presentation contexts. Presentation contexts are
// objects that provide an outer context for a presentation shell.
class nsIPresContext : public nsIObserver {
// hack to make egcs / gcc 2.95.2 happy
class nsIPresContext_base : public nsIObserver
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRESCONTEXT_IID)
};
class nsIPresContext : public nsIPresContext_base {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW

View File

@ -115,10 +115,16 @@ const PRUint8 kPresContext_DefaultFixedFont_ID = 0x01; // kGenericFont_moz_fi
// An interface for presentation contexts. Presentation contexts are
// objects that provide an outer context for a presentation shell.
class nsIPresContext : public nsIObserver {
// hack to make egcs / gcc 2.95.2 happy
class nsIPresContext_base : public nsIObserver
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRESCONTEXT_IID)
};
class nsIPresContext : public nsIPresContext_base {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW