[newlib-cygwin/main] H8: Minor cleanup in newlib/libc/include/sys/config.h.
Jeff Johnston
jjohnstn@sourceware.org
Thu Jul 16 18:41:14 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fe5467b3f78a180558914f12befb4733591df030
commit fe5467b3f78a180558914f12befb4733591df030
Author: Jan Dubiec <jdx@o2.pl>
Date: Mon Jul 13 04:17:58 2026 +0200
H8: Minor cleanup in newlib/libc/include/sys/config.h.
This patch defines the _POINTER_INT, _READ_WRITE_RETURN_TYPE, and
_READ_WRITE_BUFSIZE_TYPE macros explicitly for the H8 family, avoiding the
use of their default definitions. It also removes the unused H8300 macro.
Signed-off-by: Jan Dubiec <jdx@o2.pl>
Diff:
---
newlib/libc/include/sys/config.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index c3cd51e86..e9e8c0b96 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -20,9 +20,6 @@
/* exceptions first */
#if defined(__H8500__) || defined(__W65__)
#define __SMALL_BITFIELDS
-/* ??? This conditional is true for the h8500 and the w65, defining H8300
- in those cases probably isn't the right thing to do. */
-#define H8300 1
#endif
/* 16 bit integer machines */
@@ -41,11 +38,14 @@
#undef UINT_MAX
#define INT_MAX __INT_MAX__
#define UINT_MAX (__INT_MAX__ * 2U + 1)
+#define _POINTER_INT __INTPTR_TYPE__
+#define _READ_WRITE_RETURN_TYPE _ssize_t
+#define _READ_WRITE_BUFSIZE_TYPE size_t
#endif
#if (defined(__CR16__) || defined(__CR16C__) ||defined(__CR16CP__))
#ifndef __INT32__
-#define __SMALL_BITFIELDS
+#define __SMALL_BITFIELDS
#undef INT_MAX
#undef UINT_MAX
#define INT_MAX 32767
More information about the Newlib-cvs
mailing list