Commit 3fdabf98 authored by Ruslan Sayfutdinov's avatar Ruslan Sayfutdinov Committed by Facebook GitHub Bot

define NAME_MAX for Windows

Summary:
If we have `PATH_MAX` we can probably have `NAME_MAX` as well.

It should be exact equivalent of `NAME_MAX` on Windows:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/path-field-limits?view=msvc-160

Reviewed By: Orvid

Differential Revision: D26784071

fbshipit-source-id: 1e28d5de4358efded182db85f0382939c96a4dce
parent 4c227db0
...@@ -35,6 +35,7 @@ extern "C" { ...@@ -35,6 +35,7 @@ extern "C" {
// code that needs them. // code that needs them.
#define PATH_MAX _MAX_PATH #define PATH_MAX _MAX_PATH
#define MAXPATHLEN _MAX_PATH #define MAXPATHLEN _MAX_PATH
#define NAME_MAX _MAX_FNAME
char* mktemp(char* tn); char* mktemp(char* tn);
char* mkdtemp(char* tn); char* mkdtemp(char* tn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment