Skip to content

Commit 691f1c4

Browse files
targosnodejs-github-bot
authored andcommitted
deps: always define V8_EXPORT_PRIVATE as no-op
dllexport introduces issues when compiling with MSVC.
1 parent d4b7224 commit 691f1c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.3',
39+
'v8_embedder_string': '-node.4',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/src/base/macros.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ bool is_inbounds(float_t v) {
389389

390390
// Setup for Windows shared library export.
391391
#ifdef BUILDING_V8_SHARED
392-
#define V8_EXPORT_PRIVATE __declspec(dllexport)
392+
#define V8_EXPORT_PRIVATE
393393
#elif USING_V8_SHARED
394-
#define V8_EXPORT_PRIVATE __declspec(dllimport)
394+
#define V8_EXPORT_PRIVATE
395395
#else
396396
#define V8_EXPORT_PRIVATE
397397
#endif // BUILDING_V8_SHARED
@@ -401,7 +401,7 @@ bool is_inbounds(float_t v) {
401401
// Setup for Linux shared library export.
402402
#if V8_HAS_ATTRIBUTE_VISIBILITY
403403
#ifdef BUILDING_V8_SHARED
404-
#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
404+
#define V8_EXPORT_PRIVATE
405405
#else
406406
#define V8_EXPORT_PRIVATE
407407
#endif

0 commit comments

Comments
 (0)