This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 12/22] Provide fixpt_t via <sys/types.h>
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Mon, 18 Apr 2016 15:29:32 +0200
- Subject: [PATCH 12/22] Provide fixpt_t via <sys/types.h>
- Authentication-results: sourceware.org; auth=none
- References: <1460986182-11952-1-git-send-email-sebastian dot huber at embedded-brains dot de>
Provide fixpt_t via <sys/types.h> if __BSD_VISIBLE for BSD
compatibility.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/include/sys/_types.h | 1 +
newlib/libc/include/sys/types.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 0628b15..d47d7e9 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -199,6 +199,7 @@ typedef __uint32_t __socklen_t;
#endif
typedef int __accmode_t; /* access permissions */
+typedef __uint32_t __fixpt_t; /* fixed point number */
typedef unsigned short __nlink_t;
typedef long __suseconds_t; /* microseconds (signed) */
typedef unsigned long __useconds_t; /* microseconds (unsigned) */
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 50455f2..d473ffc 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -85,6 +85,8 @@ typedef int cpulevel_t;
typedef int cpusetid_t;
typedef int cpuwhich_t;
+typedef __fixpt_t fixpt_t; /* fixed point number */
+
#ifndef _IN_ADDR_T_DECLARED
typedef __uint32_t in_addr_t; /* base type for internet address */
#define _IN_ADDR_T_DECLARED
--
1.8.4.5