Mail Archives: djgpp-workers/1998/12/07/12:00:40
On 7 Dec 98, at 11:46, DJ Delorie wrote:
>
> > I found '#include <sys/version.h>' only in stdio.h and go32.h. I think
> > sys/version.h is best way how to define minor version of DJGPP
> > (and it should be no more done from specs). However I think it would
> > be best to include from more standard header files (for example stdlib.h,
> > stddef.h,...).
>
> Why? It only needs to be in one. That way, programs that need to
> correctly detect 2.02 can just #include <stdio.h> and then they'll
> know that __DJGPP_MINOR__ will be set correctly.
>
Simply philosophical question: which is best of standard header files
where to put this definition - I would prefer stddef.h or stdlib.h but also
stdio.h will work Ok
> > specs file is thing that belongs to gcc distribution, therefore
> > I think it should be distributed only there. We also may may need to change
> > it when compiler version is changed, which cannot be done easily when
> > specs file is distributed somewhere else.
>
> When gcc 2.7.* is no longer an issue, we can do that.
>
Then maybe really it is worth to remove specs from djdev202. Such removal
will break gcc-2.7.* but if we are dropping support for it then there is no more
such problem.
Even more: somebody may want to have more than one compiler installed
simultanously and each one can have separate and different specs file when
there is no such file in $DJDIR/lib. For example egcs and pgcc.
Andris
- Raw text -