Files
MINGW-packages/mingw-w64-nodejs/0022-Disable-MSVC_HACK.patch
2022-11-27 01:06:50 +05:30

30 lines
910 B
Diff

From a818f5d1cc8146c0880efad675ddd48efe4174b6 Mon Sep 17 00:00:00 2001
From: Johannes Schindelin <johannes.schindelin@gmx.de>
Date: Sat, 14 Apr 2018 20:42:47 +0200
Subject: [PATCH 22/23] Disable MSVC_HACK
It only produces compile errors with GCC...
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
deps/v8/src/base/export-template.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/deps/v8/src/base/export-template.h b/deps/v8/src/base/export-template.h
index 861cfe40..0211fd52 100644
--- a/deps/v8/src/base/export-template.h
+++ b/deps/v8/src/base/export-template.h
@@ -153,7 +153,9 @@
EXPORT_TEMPLATE_TEST(DEFAULT, );
EXPORT_TEMPLATE_TEST(DEFAULT, __attribute__((visibility("default"))));
+#ifdef _MSC_VER
EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
+#endif
EXPORT_TEMPLATE_TEST(DEFAULT, __declspec(dllimport));
#undef EXPORT_TEMPLATE_TEST
--
2.17.0.windows.1