diff --git a/deps/v8/src/base/bits.h b/deps/v8/src/base/bits.h
index 78f2c8b8..eba170b7 100644
--- a/deps/v8/src/base/bits.h
+++ b/deps/v8/src/base/bits.h
@@ -17,6 +17,13 @@
 #include "src/base/win32-headers.h"
 #endif
 
+#if V8_CC_MINGW
+#undef RotateLeft32
+#undef RotateLeft64
+#undef RotateRight32
+#undef RotateRight64
+#endif
+
 namespace v8 {
 namespace base {
 namespace bits {
