mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: move windows specific fns to _WIN32
PR-URL: https://github.com/nodejs/node/pull/57951 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
This commit is contained in:
1 parent
b4055150bd
commit
2877207e19
2 files changed
+8
-7
No files matched your search
@@ -1026,9 +1026,12 @@ v8::Maybe<int> GetValidFileMode(Environment* env,
|
||||
v8::Local<v8::Value> input,
|
||||
uv_fs_type type);
|
||||
|
||||
#ifdef _WIN32
|
||||
// Returns true if OS==Windows and filename ends in .bat or .cmd,
|
||||
// case insensitive.
|
||||
inline bool IsWindowsBatchFile(const char* filename);
|
||||
inline std::wstring ConvertToWideString(const std::string& str, UINT code_page);
|
||||
#endif // _WIN32
|
||||
|
||||
} // namespace node
|
||||
|
||||
|
||||
Reference in new issue
Block a user