This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: [Ada] Partial fix for overflow bugs in run-time library





On Wed, 7 Nov 2001, Florian Weimer wrote:
  + #ifdef __EMX__
  + int max_path_len = _MAX_PATH;
  + 
  + #else
  + #ifdef VMS
  + int max_path_len = 255; /* PATH_MAX */
  + 
  + #else
  + #if defined (__vxworks) || defined (__OPENNT)
  + int max_path_len = PATH_MAX;
  + 
  + #else
  + #include <sys/param.h>
  + int max_path_len = MAXPATHLEN;
  + #endif
  + #endif
  + #endif
  + 

Can't we do this with autoconf magic? We already have way too much 
#ifdef My_Favorite_OS code around...
Moving it all to one place is a good cleanup already though, so this is OK.


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