summaryrefslogtreecommitdiffstats
path: root/include/monetary.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-08-21 16:20:02 +0000
committermike <mike@FreeBSD.org>2002-08-21 16:20:02 +0000
commit9e6f796b0d2083dcc48c062853660f96db0a3c8d (patch)
tree7e9e16e835d265de592c113ee6c5d85f9be039cb /include/monetary.h
parentd5203d1ff8cef07eff72ad400fde5c759623752e (diff)
downloadFreeBSD-src-9e6f796b0d2083dcc48c062853660f96db0a3c8d.zip
FreeBSD-src-9e6f796b0d2083dcc48c062853660f96db0a3c8d.tar.gz
o Merge <machine/ansi.h> and <machine/types.h> into a new header
called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
Diffstat (limited to 'include/monetary.h')
-rw-r--r--include/monetary.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/monetary.h b/include/monetary.h
index 1de844b..9601078 100644
--- a/include/monetary.h
+++ b/include/monetary.h
@@ -30,16 +30,16 @@
#define _MONETARY_H_
#include <sys/cdefs.h>
-#include <machine/ansi.h>
+#include <sys/_types.h>
-#ifdef _BSD_SIZE_T_
-typedef _BSD_SIZE_T_ size_t;
-#undef _BSD_SIZE_T_
+#ifndef _SIZE_T_DECLARED
+typedef __size_t size_t;
+#define _SIZE_T_DECLARED
#endif
-#ifdef _BSD_SSIZE_T_
-typedef _BSD_SSIZE_T_ ssize_t;
-#undef _BSD_SSIZE_T_
+#ifndef _SIZE_T_DECLARED
+typedef __ssize_t ssize_t;
+#define _SIZE_T_DECLARED
#endif
__BEGIN_DECLS
OpenPOWER on IntegriCloud