[PATCH 2/3] cpukit: Change _COMPILING_NEWLIB to _LIBC for helper functions decls

Joel Sherrill joel at rtems.org
Tue Jun 14 16:42:48 UTC 2022


This is OK. Changed in newlib here:

commit 6226bad0eafe762b811c62d1dc096bc0858b0d1a
Author: Mike Frysinger <vapier at gentoo.org>
Date:   Mon Nov 8 22:22:27 2021 -0500

    change _COMPILING_NEWLIB to _LIBC

    Use the same name as glibc & gnulib to indicate "newlib itself is
    being compiled".  This also harmonizes the codebase a bit in that
    _LIBC was already used in places instead of _COMPILING_NEWLIB.

    Building for bfin-elf, mips-elf, and x86_64-pc-cygwin produces
    the same object code.

On Mon, Jun 13, 2022 at 8:24 PM <chrisj at rtems.org> wrote:

> From: Chris Johns <chrisj at rtems.org>
>
> Updates #4662
> ---
>  cpukit/libcsupport/src/__times.c | 4 ++--
>  cpukit/posix/src/_execve.c       | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/cpukit/libcsupport/src/__times.c
> b/cpukit/libcsupport/src/__times.c
> index 629a7bc633..14625b5aae 100644
> --- a/cpukit/libcsupport/src/__times.c
> +++ b/cpukit/libcsupport/src/__times.c
> @@ -38,9 +38,9 @@
>  #endif
>
>  /*
> - *  Needed to get the prototype for this newlib helper method
> + *  Needed to get the prototype for this libc helper method
>   */
> -#define _COMPILING_NEWLIB
> +#define _LIBC
>
>  #include <rtems.h>
>
> diff --git a/cpukit/posix/src/_execve.c b/cpukit/posix/src/_execve.c
> index 2858d13082..63afadec43 100644
> --- a/cpukit/posix/src/_execve.c
> +++ b/cpukit/posix/src/_execve.c
> @@ -43,9 +43,9 @@
>  #endif
>
>  /*
> - *  Needed to get the prototype for this newlib helper method
> + *  Needed to get the prototype for this libc helper method
>   */
> -#define _COMPILING_NEWLIB
> +#define _LIBC
>
>  #include <errno.h>
>  #include <rtems/seterr.h>
> --
> 2.19.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220614/819a1fd1/attachment.htm>


More information about the devel mailing list