diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 6d7a6ac3a0c..705a3234379 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -21,6 +21,12 @@ * Pierre Phaneuf */ +#ifdef XP_OS2_VACPP +// XXX every other file that pulls in _os2.h has no problem with HTMX there; +// this one does; the problem may lie with the order of the headers below, +// which is why this fix is here instead of in _os2.h +typedef unsigned long HMTX; +#endif #include "nsDocShell.h" #include "nsIWebShell.h" #include "nsIWebBrowserChrome.h" @@ -100,7 +106,7 @@ static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID); static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID); -#ifdef XP_PC +#if defined(XP_PC) && !defined(XP_OS2) #include #endif diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 6d7a6ac3a0c..705a3234379 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -21,6 +21,12 @@ * Pierre Phaneuf */ +#ifdef XP_OS2_VACPP +// XXX every other file that pulls in _os2.h has no problem with HTMX there; +// this one does; the problem may lie with the order of the headers below, +// which is why this fix is here instead of in _os2.h +typedef unsigned long HMTX; +#endif #include "nsDocShell.h" #include "nsIWebShell.h" #include "nsIWebBrowserChrome.h" @@ -100,7 +106,7 @@ static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID); static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID); -#ifdef XP_PC +#if defined(XP_PC) && !defined(XP_OS2) #include #endif