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

Henrik Bach henrik_bach_llvm at hotmail.com
Sat Sep 18 13:28:58 PDT 2004

>From: "Henrik Bach" <henrik_bach_llvm at hotmail.com>
>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.


Undgå pop-ups med MSN Toolbar -  http://toolbar.msn.dk/ hent den gratis!

More information about the llvm-dev mailing list