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 To: djgpp AT delorie DOT com In-reply-to: (alexvn@bigfoot.com) Subject: Re: __DJGPP_MINOR__ References: 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 Precedence: bulk > Where does my program (t1.cpp) take __DJGPP_MINOR__ from ? Either or include , 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.