This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Mingw32] Missing macro definitions




>Date: Fri, 1 May 1998 12:35:44 -0500 (CDT)
>From: Mumit Khan <khan@xraylith.wisc.edu>
>To: Earnie Boyd <earnie_boyd@hotmail.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@hotmail.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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]