diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node_main.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/node_main.cc b/src/node_main.cc index 58e747e52c4..dce72aff22f 100644 --- a/src/node_main.cc +++ b/src/node_main.cc @@ -1,7 +1,15 @@ #include "node.h" #ifdef _WIN32 +#include <VersionHelpers.h> + int wmain(int argc, wchar_t *wargv[]) { + if (!IsWindows7OrGreater()) { + fprintf(stderr, "This application is only supported on Windows 7, " + "Windows Server 2008 R2, or higher."); + exit(1); + } + // Convert argv to to UTF8 char** argv = new char*[argc]; for (int i = 0; i < argc; i++) { |