[rtems commit] cpukit: Change _COMPILING_NEWLIB to _LIBC for helper functions decls

Chris Johns chrisj at rtems.org
Wed Jun 15 02:56:25 UTC 2022


Module:    rtems
Branch:    master
Commit:    0cf0914efef17832ac963cc144f7288845d9b883
Changeset: http://git.rtems.org/rtems/commit/?id=0cf0914efef17832ac963cc144f7288845d9b883

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Jun 14 11:21:46 2022 +1000

cpukit: Change _COMPILING_NEWLIB to _LIBC for helper functions decls

Updates #4662

---

 cpukit/libcsupport/src/__gettod.c | 2 +-
 cpukit/libcsupport/src/__times.c  | 4 ++--
 cpukit/posix/src/_execve.c        | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c
index 610f2c4d4a..b43081c9eb 100644
--- a/cpukit/libcsupport/src/__gettod.c
+++ b/cpukit/libcsupport/src/__gettod.c
@@ -41,7 +41,7 @@
 /*
  *  Needed to get the prototype for the newlib helper method
  */
-#define _COMPILING_NEWLIB
+#define _LIBC
 
 #include <sys/time.h>
 #include <reent.h>
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>



More information about the vc mailing list