delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/09/12/17:56:29

Sender: nate AT cartsys DOT com
Message-ID: <35FAED35.50495E82@cartsys.com>
Date: Sat, 12 Sep 1998 14:52:53 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: inlines/pc.h not inside #ifndef...

All the definitions in inlines/pc.h are not inside #ifndef
__STRICT_ANSI__ or anything else.  This means that a compilation under
`-ansi' that #includes that or pc.h will get the definitions. 
Obviously, a real ANSI program will not include them, but all the other
non-portable headers have these wrappers.  Should inlines/pc.h?

Alternatively, the #inclusion from pc.h could be moved inside the
#ifndefs.

I noticed this when trying to make a tool to automatically write
portability notes.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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