delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/14/21:15:22

From: "Andrew Crabtree" <andrewc AT rosemail DOT rose DOT hp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: help! I can't find where is __DJGPP__ defined
Date: Fri, 14 Nov 1997 09:42:39 -0800
Organization: Hewlett Packard
Lines: 26
Message-ID: <64i2ie$khr$1@rosenews.rose.hp.com>
References: <01bcf0f1$c977fdc0$0200a8c0 AT p90>
NNTP-Posting-Host: ros51675cra.rose.hp.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thomas Chan wrote in message <01bcf0f1$c977fdc0$0200a8c0 AT p90>...
> I can't find where is __DJGPP__ defined.
> Would some body give me some help?
When building gcc, the file config/i386/go32.h has a section that
looks like this

#ifdef CPP_PREDEFINES
#undef CPP_PREDEFINES
#endif
#define CPP_PREDEFINES "-Dunix -Di386 -DGO32 -DMSDOS \
 yada yada yada

My version (egcs based) does not include a -DDJGPP here.  This can be
overridden
in the specs file for the compiler, which is in you lib/specs dir.  To see
if your version of
the compiler itself has it compile with '-dumpspecs'.  To undefine it you
will probably need to
overwrite the specs file.

HTH

Andy


- Raw text -


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