delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/04/28/05:00:26

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Wiktor S." <wswiktorSP AT Mpoczta DOT fm>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC 5.1.0 problem with <dos.h>
Date: Tue, 28 Apr 2015 10:45:29 +0200
Organization: INTERIA.PL S.A.
Lines: 23
Message-ID: <mhnhb8$m7m$1@usenet.news.interia.pl>
References: <mhmgck$ims$1 AT usenet DOT news DOT interia DOT pl> <201504280005 DOT t3S05t2U020439 AT delorie DOT com>
NNTP-Posting-Host: user-46-112-109-139.play-internet.pl
X-Trace: usenet.news.interia.pl 1430210729 22774 46.112.109.139 (28 Apr 2015 08:45:29 GMT)
X-Complaints-To: usenet AT firma DOT interia DOT pl
NNTP-Posting-Date: Tue, 28 Apr 2015 08:45:29 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Bytes: 1882
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

DJ Delorie wrote:
> My guess is that gcc's change to default to C99 semantics has broken
> this code in sys/cdefs.h, despite the comment that says it shouldn't:
>
> /* Ensure that always traditional GNU extern inline semantics are used
>   (aka -fgnu89-inline) even if ISO C99 semantics have been specified.
> */ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
> # define _EXTERN_INLINE  extern __inline__ __attribute__
> ((__gnu_inline__)) #else
> # define _EXTERN_INLINE  extern __inline__
> #endif

This is because it isn't there.
I am using djdev204.zip from the FTP site. The file seems to be from 2003.

I've added the above code to <sys/cdefs.h> and modified <inlines/pc.h> to 
use this macro, and then the problem disappears.


-- 
Wiktor Sywula


- Raw text -


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