Skip to content

Commit bff2832

Browse files
committed
Use C++11 ABI on Node.js 18.x+ on Linux
Fixes: #6 Refs: nodejs/node#36634
1 parent d227274 commit bff2832

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/binding.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#include "node_version.h"
2+
13
// Node.js published binary compatibility
24
#undef _GLIBCXX_USE_CXX11_ABI
3-
#ifdef __arm__
5+
#if defined(__arm__) || NODE_VERSION_AT_LEAST(18, 0, 0)
46
#define _GLIBCXX_USE_CXX11_ABI 1
57
#else
68
#define _GLIBCXX_USE_CXX11_ABI 0

0 commit comments

Comments
 (0)