Skip to content

Commit 8d5fa19

Browse files
authored
filelister.cpp: removed unused NAME_MAX related code (#5609)
The code which was using this was removed in 8b309a8.
1 parent 57bec6c commit 8d5fa19

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

cli/filelister.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
#include <cstddef>
2626
#include <cstring>
27-
// fix NAME_MAX not found on macOS GCC8.1
28-
#include <climits>
2927
#include <memory>
3028

3129
#ifdef _WIN32
@@ -157,13 +155,6 @@ std::string FileLister::addFiles(std::map<std::string, std::size_t> &files, cons
157155
#include <sys/stat.h>
158156
#include <cerrno>
159157

160-
#ifndef NAME_MAX
161-
#ifdef MAXNAMLEN
162-
#define NAME_MAX MAXNAMLEN
163-
#endif
164-
#endif
165-
166-
167158
static std::string addFiles2(std::map<std::string, std::size_t> &files,
168159
const std::string &path,
169160
const std::set<std::string> &extra,

0 commit comments

Comments
 (0)