delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/06/14:02:58

Date: Fri, 6 Jun 1997 14:02:01 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Conrad Wei-Li Song <conradsong AT mail DOT utexas DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: DJGPP standard headers...
In-Reply-To: <199706061629.MAA04676@delorie.com>
Message-Id: <Pine.D-G.3.91.970606135939.12912K-100000@dg1>
Mime-Version: 1.0

On Fri, 6 Jun 1997, Conrad Wei-Li Song wrote:

> One small problem: apparantly most of the standard headers such
> as <malloc.h> simply #include's <stdlib.h>.  Problems can occur
> if functions with the same name are redefined.

Yes but look in stdlib.h, and all of the headers in fact, and you will 
see a #ifndef that protects from multiple inclusions.  This is perfectly 
safe.  BTW one would want to emulate this style in one's own header 
files. 

Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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