Files
MINGW-packages/mingw-w64-v8/0001-Include-win32-headers-h-before-undef-MemoryBarrier.patch
Ray Donnelly 827df8e9ab v8: Lots of fixes
0000- .. cctest couldn't be built so build would fail due to USING_V8_SHARED being
         used while building a static library. Upstreamable?
0001- .. the undef of MemoryBarrier was effect-less due to later inclusion of Windows
         headers, so force including win32-headers.h before the undef. Upstreamable?
0002- .. OS::TotalPhysicalMemory was in a MSVC-only block for some reason. Upstreamable.
0003- .. Put full version info in name of the .dll
0004- .. Create an import library (.dll.a) (PKGBUILD installs it to lib folder)

General: Added a v8.pc pkgconfig file.

I also added myself as a maintainer for this package.
2014-07-20 22:38:28 +01:00

14 lines
578 B
Diff

--- v8-3.27.34.6/src/base/atomicops.h 2014-07-19 23:18:25.504436700 +0100
+++ v8-3.27.34.6/src/base/atomicops.h.new 2014-07-19 23:07:21.555625900 +0100
@@ -34,6 +34,10 @@
// X64, undef it, and call its documented
// (http://msdn.microsoft.com/en-us/library/windows/desktop/ms684208.aspx)
// implementation directly.
+// Ensure windows.h gets included before undefining MemoryBarrier so that the
+// symbol gets defined and undefined at this point otherwise it gets included
+// after this #undef and has no effect.
+#include "win32-headers.h"
#undef MemoryBarrier
#endif