This is the mail archive of the gcc@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: libiberty, why aren't xcalloc/calloc provided? (PATCH to add'em)



Why not something like this at some sufficiently early point in the
compilation:
	#ifdef __CYGWIN32__
	#ifndef __CYGWIN__
	#define __CYGWIN__
	#endif
	#endif

-- or --

	#ifdef __CYGWIN__
	#ifndef __CYGWIN32__
	#define __CYGWIN32__
	#endif
	#endif

That should insulate us during their change.

--------
Where do you want to crash, toady?
On Thu, 19 Nov 1998, Geoffrey Noer wrote:

> On Thu, Nov 19, 1998 at 11:07:48AM -0500, Kaveh R. Ghazi wrote:
> [...]
> > 	Hmm, when Geoffrey Noer changed CYGWIN32 -> CYGWIN, he only did
> > it in the gcc directory.  All references in the libiberty directory are
> > still CYGWIN32.  I'd prefer to have my patch be consistent with the rest
> > of the files in libiberty and if Geoffrey feels its appropriate to
> > convert it, he should do them all in one batch.  I hope that's okay.
> 
> Actually, as it turns out, I was jumping the gun a bit in doing the
> conversion to using the new Cygwin preprocessor define.  We need to
> maintain backwards-compatibility for some period of time to allow
> older compilers to build the current sources.  I'm currently working
> on reverting back to checking __CYGWIN32__ instead of __CYGWIN__; that
> should go in sometime in the next few days or so...
> 
> *sigh*
> 
> -- 
> Geoffrey Noer
> noer@cygnus.com
> 



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