Skip to content

Commit 0d4a5ef

Browse files
committed
always respect user-defined NAPI_EXTERN
1 parent 0d03b77 commit 0d4a5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef SRC_NODE_API_H_
22
#define SRC_NODE_API_H_
33

4-
#ifdef BUILDING_NODE_EXTENSION
4+
#if defined(BUILDING_NODE_EXTENSION) && !defined(NAPI_EXTERN)
55
#ifdef _WIN32
66
// Building native addon against node
77
#define NAPI_EXTERN __declspec(dllimport)

0 commit comments

Comments
 (0)