filelister.cpp: removed unused `NAME_MAX` related code (#5609)
The code which was using this was removed in
8b309a8829
.
This commit is contained in:
parent
57bec6cbc8
commit
8d5fa19caa
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
// fix NAME_MAX not found on macOS GCC8.1
|
|
||||||
#include <climits>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@ -157,13 +155,6 @@ std::string FileLister::addFiles(std::map<std::string, std::size_t> &files, cons
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
||||||
#ifndef NAME_MAX
|
|
||||||
#ifdef MAXNAMLEN
|
|
||||||
#define NAME_MAX MAXNAMLEN
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
static std::string addFiles2(std::map<std::string, std::size_t> &files,
|
static std::string addFiles2(std::map<std::string, std::size_t> &files,
|
||||||
const std::string &path,
|
const std::string &path,
|
||||||
const std::set<std::string> &extra,
|
const std::set<std::string> &extra,
|
||||||
|
|
Loading…
Reference in New Issue