Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Use __{PTRDIFF, SIZE, WCHAR, WINT}_TYPE__ ...
details: https://anonhg.NetBSD.org/src/rev/673ccb267546
branches: trunk
changeset: 784296:673ccb267546
user: matt <matt%NetBSD.org@localhost>
date: Thu Jan 24 10:18:41 2013 +0000
description:
Use __{PTRDIFF,SIZE,WCHAR,WINT}_TYPE__ is they are defined.
diffstat:
sys/arch/arm/include/ansi.h | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 7e3c948cc891 -r 673ccb267546 sys/arch/arm/include/ansi.h
--- a/sys/arch/arm/include/ansi.h Thu Jan 24 10:17:00 2013 +0000
+++ b/sys/arch/arm/include/ansi.h Thu Jan 24 10:18:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ansi.h,v 1.13 2011/07/17 20:54:37 joerg Exp $ */
+/* $NetBSD: ansi.h,v 1.14 2013/01/24 10:18:41 matt Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -48,15 +48,31 @@
* #endif
*/
#define _BSD_CLOCK_T_ unsigned int /* clock() */
+#ifdef __PTRDIFF_TYPE__
+#define _BSD_PTRDIFF_T_ __PTRDIFF_TYPE__ /* ptr1 - ptr2 */
+#else
#define _BSD_PTRDIFF_T_ long int /* ptr1 - ptr2 */
+#endif
+#ifdef __SIZE_TYPE__
+#define _BSD_SIZE_T_ __SIZE_TYPE__ /* sizeof() */
+#else
#define _BSD_SIZE_T_ unsigned long int /* sizeof() */
-#define _BSD_SSIZE_T_ long int /* byte count or error */
+#endif
+#define _BSD_SSIZE_T_ _BSD_PTRDIFF_T_ /* byte count or error */
#define _BSD_TIME_T_ __int64_t /* time() */
#define _BSD_CLOCKID_T_ int /* clockid_t */
#define _BSD_TIMER_T_ int /* timer_t */
#define _BSD_SUSECONDS_T_ int /* suseconds_t */
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
+#ifdef __WCHAR_TYPE__
+#define _BSD_WCHAR_T_ __WCHAR_TYPE__ /* wchar_t */
+#else
#define _BSD_WCHAR_T_ int /* wchar_t */
+#endif
+#ifdef __WINT_TYPE__
+#define _BSD_WINT_T_ __WINT_TYPE__ /* wint_t */
+#else
#define _BSD_WINT_T_ int /* wint_t */
+#endif
#endif /* _ANSI_H_ */
Home |
Main Index |
Thread Index |
Old Index