Message #5 des archives de la Liste gnuports@2rosenthals.com

De: "Steven Levine" <gnuports@2rosenthals.com> En-têtes complèts
Message brut
Sujet: Re: [GNU Ports] _beginthread not declared
Date: Sun, 10 May 2020 12:28:49 -0700
À: "GNU Ports for eCS Mailing List" <gnuports@2rosenthals.com>

In <list-752971@2rosenthals.com>, on 05/10/20
   at 06:19 PM, "Paul Smedley" <gnuports@2rosenthals.com> said:

Hi guys,

>> Yet these turn into a fatal error if I declare __USE_EMX or such.

>I remember a similar problem years ago with one port (I forget which).

>I worked around it by adding the definition for _beginthread in the .c
>file that needed it.

I guessed a bit backwards and the macro priorities.  For _beginthread to
be declared both __STRICT_ANSI__ and _POSIX_SOURCE must be undefined.
Best I can tell this logic is specific to our gcc/kLIBC ports.  The use of
_WITH_UNDERSCORE and __USE_EMX also appear to be specific to our gcc/kLIBC
ports.  __STRICT_ANSI__ is known to gcc and _POSIX_SOURCE is known to the
POSIX standard. _POSIX_SOURCE appears to be deprecated in favor of
_POSIX_C_SOURCE.

One possible solution is to turn off the -ansi option which may allow
_beginthread to be defined without negative side effects.

Steven

--
----------------------------------------------------------------------
"Steven Levine" <steve53@earthlink.net>  Warp/DIY/BlueLion etc.
www.scoug.com www.arcanoae.com www.warpcave.com
----------------------------------------------------------------------


--
This email was Anti Virus checked by Astaro Security Gateway. http://www.sophos.com

Abonner: Direct, Résumé, Index.
Désabonner
Écrire au gestionnaire de la liste