fix NAME_MAX not found on macOS GCC8.1 (#3098)

This commit is contained in:
YQGong 2021-01-30 21:45:03 +08:00 committed by GitHub
parent 43e8430a80
commit b7ce2a5a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@
#include <cstddef>
#include <cstring>
// fix NAME_MAX not found on macOS GCC8.1
#include <climits>
#ifdef _WIN32