summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-06-14 11:21:46 +1000
committerChris Johns <chrisj@rtems.org>2022-06-15 13:00:48 +1000
commit0cf0914efef17832ac963cc144f7288845d9b883 (patch)
tree040002e1a180b73f427a5ef41aff12ea13284088 /cpukit/libcsupport
parentscore/cpu: Silence ARM and AARCH64 GCC 12 false trigger array warning (diff)
downloadrtems-0cf0914efef17832ac963cc144f7288845d9b883.tar.bz2
cpukit: Change _COMPILING_NEWLIB to _LIBC for helper functions decls
Updates #4662
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/__gettod.c2
-rw-r--r--cpukit/libcsupport/src/__times.c4
2 files changed, 3 insertions, 3 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>