X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 2002:a05:600c:4f8a:: with SMTP id n10mr9104655wmq.11.1624827178390; Sun, 27 Jun 2021 13:52:58 -0700 (PDT) From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro library would need to be recompiled with -fgnu89-inline ? Date: Sun, 27 Jun 2021 22:52:57 +0200 Lines: 11 Message-ID: References: <17a309c6725 DOT ee2b33335838 DOT 5210672258564129766 AT zoho DOT com> <17a30b8508b DOT eceb84066270 DOT 6146636058200994488 AT zoho DOT com> <17a49890ca6 DOT 123f188ed46443 DOT 7177863653080197011 AT zoho DOT com> <17a4a690e82 DOT ad5bda6d47674 DOT 7543348174997411766 AT zoho DOT com> Mime-Version: 1.0 X-Trace: news.dfncis.de 0csXcZ0qgB3xWyBUxv0sSglUTo26ebjxaOhHPcojUUBgLNb5wkO+v5Tkdt Cancel-Lock: sha1:8p8IUuDTv4WXVCGA7MDf3DGU0mc= User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: de-DE Bytes: 1839 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 Precedence: bulk Am 27.06.2021 um 18:07 schrieb Damien Guibouret: > Using -fcommon is certainly not the correct correction (but could be a > workaround for old programs with a lot of occurence of this problem), > but adding extern or static depending on if the variable should be > shared or not is better. Adding 'static' into a header is hardly ever the right solution. The rules of thumb are: never write 'extern' in a *.c file, and never 'static' in a *.h file.