From 1996946915d93d2a492e4cb6ade2335e36c45417 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 17 Dec 2021 00:53:42 -0500 Subject: [PATCH] Define PATH_MAX if not defined by limits.h --- include/ghc/filesystem.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index a319def..e5ff86c 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -254,6 +254,10 @@ #include #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Behaviour Switches (see README.md, should match the config in test/filesystem_test.cpp): //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -