MINGW-packages/mingw-w64-nodejs/0105-v8-fix-conflicting-functions.patch
2024-01-13 14:51:57 +08:00

19 lines
386 B
Diff

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 {