Skip to content

Commit 5fc0201

Browse files
committed
There is no node_extern.h anymore
1 parent 8488b84 commit 5fc0201

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

atom/node/osfhandle.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#include <windows.h>
99

10-
#include "node_extern.h"
11-
1210
namespace node {
1311

1412
// The _open_osfhandle and _close functions on Windows are provided by the
@@ -20,8 +18,8 @@ namespace node {
2018
// we always create fd in one instance of VC++ library.
2119
// Followings wrappers are compiled in node.dll, and all code in electron.exe
2220
// should call these wrappers instead of calling _open_osfhandle directly.
23-
NODE_EXTERN int open_osfhandle(intptr_t osfhandle, int flags);
24-
NODE_EXTERN int close(int fd);
21+
__declspec(dllexport) int open_osfhandle(intptr_t osfhandle, int flags);
22+
__declspec(dllexport) int close(int fd);
2523

2624
} // namespace node
2725

0 commit comments

Comments
 (0)