delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/11/02/06:28:33

From: Martin Stromberg <Martin DOT Stromberg AT lu DOT erisoft DOT se>
Message-Id: <199811021127.MAA03095@mars.lu.erisoft.se>
Subject: Re: specs file
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Mon, 2 Nov 1998 12:27:49 +0100 (MET)
In-Reply-To: <Pine.SUN.3.91.981102130737.11877B-100000@is> from "Eli Zaretskii" at Nov 2, 98 01:12:14 pm
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

> > On the other hand if a program needs to know __DJGPP_MINOR and such, it
> > really should include some header (version.h?) for that.
> 
> ANSI C allows for a program to be written that doesn't include any 
> headers, and still uses library functions.  The problem is how to make
> __DJGPP__ and __DJGPP_MINOR__ be defined in such a program.  For 
> exxample, i386 and __MSDOS__ *will* be defined in such a program.

Of course. But ANSI C doesn't require that the program works as intended
if no headers have been #included, does it?

Anyway, if the program _needs_ to have __DJGPP__, say, available, then 
can't we insist on "#include version.h"?


Right,

                                                        MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019