This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Partial fix for overflow bugs in run-time library
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Subject: Re: [Ada] Partial fix for overflow bugs in run-time library
- From: Geert Bosch <bosch at gnat dot com>
- Date: Wed, 7 Nov 2001 08:38:15 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
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.