Mail Archives: cygwin/1998/05/01/17:16:58
>Date: Fri, 1 May 1998 12:35:44 -0500 (CDT)
>From: Mumit Khan <khan AT xraylith DOT wisc DOT edu>
>To: Earnie Boyd <earnie_boyd AT hotmail DOT com>
>Subject: Re: [Mingw32] Missing macro definitions
>
<snip>
>These are defined in <stdlib.h> supplied with mingw32 egcs-1.0.2.
>
> #ifndef __STRICT_ANSI__
>
> #ifndef MAX_PATH
> #define MAX_PATH (260)
> #endif
>
> #define _MAX_PATH MAX_PATH
> #define _MAX_DRIVE (3)
> #define _MAX_DIR _MAX_PATH
> #define _MAX_FNAME _MAX_PATH
Based on the VC++ 5.0 Run-Time Library Reference, pp: 252,
"_MAX_FNAME is defined in STDLIB.H as 256 bytes". I found this after I
posted BTW.
This makes since if _MAX_DRIVE is (3) then
3 (DRIVE) + 256 (FNAME) + 1 (NULL) = 260 (_MAX_PATH)
- \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd AT hotmail DOT com-
------ooo0O--O0ooo-------
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -