www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/06/01:50:11

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Sat, 06 Apr 2002 09:43:54 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "deckerben" <deckerben AT freenet DOT de>
Message-Id: <1438-Sat06Apr2002094352+0300-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <3cae13c9$0$12293$9b622d9e@news.freenet.de>
(deckerben AT freenet DOT de)
Subject: Re: -DSTDC_HEADERS=1 ...problems with string.h?
References: <3cae13c9$0$12293$9b622d9e AT news DOT freenet 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

> From: "deckerben" <deckerben AT freenet DOT de>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 5 Apr 2002 23:30:45 +0200
> 
> In file included from tparam.c:29:
> d:/user/djgpp/include/string.h:55: parse error before '(' token
> d:/user/djgpp/include/string.h:55: parse error before "const"
> make.exe: *** [tparam.o] Error 1
> 
> I examined the makefile and removed ONLY the DEFS
> declaration -DSTDC_HEADERS=1
> The library then compiled completely without appearant problems.
> 
> Is this declaration always incompatible with DJGPP?

There's nothing wrong with defining STANDARD_HEADERS, it's fully
compatible with DJGPP.

If you look at string.h, line 55, you will see that this line declares
a prototype for the function `index'.  I'm guessing that when
STANDARD_HEADERS is defined, termcap's sources also define `index' to
something else, and that something causes the compiler to barf.

If my guess is correct, the problem is not STANDARD_HEADERS, but the
definition of `index' in termcap.

- Raw text -


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