Undo more windows.h damage by undef-ing RemoveDirectory, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 21 Jun 2014 22:17:44 -0400
changeset 189954 6aa850be63ea91e5df8569939f1a094e3eac9cfb
parent 189953 53ce5128329e2f172e9e6f2b560abfa2f4aeed2c
child 189955 619b13c76a5f08f849e830692f212061e36abdb7
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
milestone33.0a1
Undo more windows.h damage by undef-ing RemoveDirectory, no bug
accessible/src/windows/msaa/AccessibleWrap.h
ipc/chromium/src/base/process_util.h
layout/generic/nsObjectFrame.h
--- a/accessible/src/windows/msaa/AccessibleWrap.h
+++ b/accessible/src/windows/msaa/AccessibleWrap.h
@@ -213,11 +213,12 @@ protected:
 } // namespace mozilla
 
 #ifdef XP_WIN
 // Undo the windows.h damage
 #undef GetMessage
 #undef CreateEvent
 #undef GetClassName
 #undef GetBinaryType
+#undef RemoveDirectory
 #endif
 
 #endif
--- a/ipc/chromium/src/base/process_util.h
+++ b/ipc/chromium/src/base/process_util.h
@@ -250,11 +250,12 @@ class ProcessMetrics {
 }  // namespace base
 
 #if defined(OS_WIN)
 // Undo the windows.h damage
 #undef GetMessage
 #undef CreateEvent
 #undef GetClassName
 #undef GetBinaryType
+#undef RemoveDirectory
 #endif
 
 #endif  // BASE_PROCESS_UTIL_H_
--- a/layout/generic/nsObjectFrame.h
+++ b/layout/generic/nsObjectFrame.h
@@ -17,16 +17,17 @@
 
 #ifdef XP_WIN
 #include <windows.h> // For HWND :(
 // Undo the windows.h damage
 #undef GetMessage
 #undef CreateEvent
 #undef GetClassName
 #undef GetBinaryType
+#undef RemoveDirectory
 #endif
 
 class nsPresContext;
 class nsRootPresContext;
 class nsDisplayPlugin;
 class nsIOSurface;
 class PluginBackgroundSink;
 class nsPluginInstanceOwner;