Bug 877510: Undefine GetClassInfo in nsHTMLFormElement.h, in case someone #including us also #included a windows header that stupidly defined it to something else. r=smaug

This commit is contained in:
Daniel Holbert 2013-06-03 10:00:04 -07:00
parent 8c49bb4fbe
commit a32115ff8b

View File

@ -21,6 +21,13 @@
#include "nsDataHashtable.h"
#include "nsAsyncDOMEvent.h"
// Including 'windows.h' will #define GetClassInfo to something else.
#ifdef XP_WIN
#ifdef GetClassInfo
#undef GetClassInfo
#endif
#endif
class nsFormControlList;
class nsIMutableArray;
class nsIURI;
@ -219,8 +226,7 @@ public:
*/
bool CheckValidFormSubmission();
// XXXdholbert This should be MOZ_OVERRIDE, or maybe dropped (see bug 877510)
virtual nsXPCClassInfo* GetClassInfo();
virtual nsXPCClassInfo* GetClassInfo() MOZ_OVERRIDE;
virtual nsIDOMNode* AsDOMNode() MOZ_OVERRIDE { return this; }