RE: [LLVMdev] MAXPATHLEN' undeclared (first use this function)

From: "Henrik Bach" <>
Date: Sat, 18 Sep 2004 18:46:26 +0200

MAXPATHLEN is on Interix defined in <limits.h>.

However, it doesn't seem to have any effect including it before any other header files in the system specific Path.cpp for Interix as seen above:
#include <limits.h>

// Include the generic Unix implementation
#include "../Unix/Path.cpp"


1) The UAMG says to include all API from Interix one should define _ALL_SOURCE before the first header file included. In the LLVM project preferably on the commandline as -D_ALL_SOURCE because it applies to all source files.

2) Inclusion of <limits.h> in Path.cpp is superflocius, because it is indirectly included from elsewhere.