Skip to content

Commit

Permalink
always respect user-defined NAPI_EXTERN
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Aug 15, 2023
1 parent 0d03b77 commit 0d4a5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_api.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef SRC_NODE_API_H_
#define SRC_NODE_API_H_

#ifdef BUILDING_NODE_EXTENSION
#if defined(BUILDING_NODE_EXTENSION) && !defined(NAPI_EXTERN)
#ifdef _WIN32
// Building native addon against node
#define NAPI_EXTERN __declspec(dllimport)
Expand Down

0 comments on commit 0d4a5ef

Please sign in to comment.