Skip to content

Commit

Permalink
Merge pull request #313 from dgriffen/node-8-fix
Browse files Browse the repository at this point in the history
enable compiling against node 8
  • Loading branch information
Tyriar authored May 28, 2019
2 parents 4043efd + 27da4f4 commit 9f86ddf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/win/conpty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
* with pseudo-terminal file descriptors.
*/

// node versions lower than 10 define this as 0x502 which disables many of the definitions needed to compile
#include <node_version.h>
#if NODE_MODULE_VERSION <= 57
#define _WIN32_WINNT 0x600
#endif

#include <iostream>
#include <nan.h>
#include <Shlwapi.h> // PathCombine, PathIsRelative
Expand Down

0 comments on commit 9f86ddf

Please sign in to comment.