diff --git a/mozilla/xpcom/base/nsDebug.h b/mozilla/xpcom/base/nsDebug.h index e97bb4941af..2936bfc5c8d 100644 --- a/mozilla/xpcom/base/nsDebug.h +++ b/mozilla/xpcom/base/nsDebug.h @@ -31,6 +31,10 @@ * macros defined later in this file so that the debug code can be * conditionally compiled out. */ + +/* in case this is included by a C file */ +#ifdef __cplusplus + class nsDebug { public: // XXX add in log controls here @@ -175,5 +179,5 @@ if (!(expr)) \ #define NS_BREAK() {} #endif /* ! NS_DEBUG */ - +#endif /* __cplusplus */ #endif /* nsDebug_h___ */ diff --git a/mozilla/xpcom/glue/nsDebug.h b/mozilla/xpcom/glue/nsDebug.h index e97bb4941af..2936bfc5c8d 100644 --- a/mozilla/xpcom/glue/nsDebug.h +++ b/mozilla/xpcom/glue/nsDebug.h @@ -31,6 +31,10 @@ * macros defined later in this file so that the debug code can be * conditionally compiled out. */ + +/* in case this is included by a C file */ +#ifdef __cplusplus + class nsDebug { public: // XXX add in log controls here @@ -175,5 +179,5 @@ if (!(expr)) \ #define NS_BREAK() {} #endif /* ! NS_DEBUG */ - +#endif /* __cplusplus */ #endif /* nsDebug_h___ */ diff --git a/mozilla/xpcom/public/nsDebug.h b/mozilla/xpcom/public/nsDebug.h index e97bb4941af..2936bfc5c8d 100644 --- a/mozilla/xpcom/public/nsDebug.h +++ b/mozilla/xpcom/public/nsDebug.h @@ -31,6 +31,10 @@ * macros defined later in this file so that the debug code can be * conditionally compiled out. */ + +/* in case this is included by a C file */ +#ifdef __cplusplus + class nsDebug { public: // XXX add in log controls here @@ -175,5 +179,5 @@ if (!(expr)) \ #define NS_BREAK() {} #endif /* ! NS_DEBUG */ - +#endif /* __cplusplus */ #endif /* nsDebug_h___ */