delorie.com/archives/browse.cgi | search |
Date: | Sun, 10 Nov 2002 15:39:35 -0500 |
Message-Id: | <200211102039.gAAKdZG02524@envy.delorie.com> |
X-Authentication-Warning: | envy.delorie.com: dj set sender to dj AT delorie DOT com using -f |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <aqmd64$atpfh$1@ID-79865.news.dfncis.de> (alexvn@bigfoot.com) |
Subject: | Re: __DJGPP_MINOR__ |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1021027161818 DOT 3459A-100000 AT is> <aqmd64$atpfh$1 AT ID-79865 DOT news DOT dfncis DOT de> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> Where does my program (t1.cpp) take __DJGPP_MINOR__ from ? Either <go32.h> or <stdio.h> include <sys/version.h>, where it is defined. if you don't happen to include either of these, you won't get it defined. > 2. Another question. > We see that the following values are defined : __MSDOS__ and __unix__. > How can a program know where it is compiled : on MSDOS, on UNIX, on Windows 95/98/2000 etc. You can't. And, in fact, shouldn't. The flags tell you what it was compiled *for*, not what it was compiled *on*. You can try using uname() to figure out what machine you're *running on* if that's what you're really looking for.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |