Mail Archives: djgpp/2000/01/18/13:30:37
On Mon, 17 Jan 2000, Andris Pavenis wrote:
> Including $DJDIR/lib/../include/sys/version.h is a hack how to get
> definitions of current DJGPP version automatically in. I still think
> that best would be to force to include stdio.h when one needs version
> definitions, but there were objections against such solution.
The main objection is this: the ANSI Standard says that a program
which doesn't include any header files should still have the same
behavior as when it does.
The best way to solve this nuisance would be to have some environment
variable that specifies default command-line arguments for gcc or cpp.
Then we could simply put -D__DJGPP__= there (in djgpp.env), and forget
about this issue.
- Raw text -