From 8c3b6bc1aa4cce792a5d5711ea139bee8ec56501 Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 29 Sep 2023 10:17:37 +0800 Subject: [PATCH] PATCH: v8config.h & macros.h --- include/v8config.h | 2 +- src/base/macros.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/v8config.h b/include/v8config.h index 33bb3f943..e6053a152 100644 --- a/include/v8config.h +++ b/include/v8config.h @@ -478,7 +478,7 @@ path. Add it with -I to the command line #if V8_HAS_BUILTIN_ASSUME_ALIGNED # define V8_ASSUME_ALIGNED(ptr, alignment) \ - __builtin_assume_aligned((ptr), (alignment)) + (ptr) #else # define V8_ASSUME_ALIGNED(ptr, alignment) (ptr) #endif diff --git a/src/base/macros.h b/src/base/macros.h index 25a533c5a..8256050eb 100644 --- a/src/base/macros.h +++ b/src/base/macros.h @@ -388,9 +388,9 @@ bool is_inbounds(float_t v) { // Setup for Windows shared library export. #ifdef BUILDING_V8_SHARED -#define V8_EXPORT_PRIVATE __declspec(dllexport) +#define V8_EXPORT_PRIVATE //__declspec(dllexport) #elif USING_V8_SHARED -#define V8_EXPORT_PRIVATE __declspec(dllimport) +#define V8_EXPORT_PRIVATE //__declspec(dllimport) #else #define V8_EXPORT_PRIVATE #endif // BUILDING_V8_SHARED