summaryrefslogtreecommitdiffstats
path: root/include/monetary.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-10-04 07:37:57 +0000
committerbde <bde@FreeBSD.org>2001-10-04 07:37:57 +0000
commit55491453e2606a363ef6a7b702af9567c468277c (patch)
treee1f1e7270f38a8c2935d3a7f8e06828b4c75c10b /include/monetary.h
parent1e25e4053df2331cca231188fba97ff83bab315f (diff)
downloadFreeBSD-src-55491453e2606a363ef6a7b702af9567c468277c.zip
FreeBSD-src-55491453e2606a363ef6a7b702af9567c468277c.tar.gz
Fixed namespace pollution:
- only declare the application symbols specified in Posix.1-200x drafts, not everything in <sys/types.h> and <stddef.h>. - don't use the application symbol 'm' for an arg name.
Diffstat (limited to 'include/monetary.h')
-rw-r--r--include/monetary.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/monetary.h b/include/monetary.h
index 177d590..5d7433a 100644
--- a/include/monetary.h
+++ b/include/monetary.h
@@ -30,11 +30,20 @@
#define _MONETARY_H
#include <sys/cdefs.h>
-#include <sys/types.h>
-#include <stddef.h>
+#include <machine/ansi.h>
+
+#ifdef _BSD_SIZE_T_
+typedef _BSD_SIZE_T_ size_t;
+#undef _BSD_SIZE_T_
+#endif
+
+#ifdef _BSD_SSIZE_T_
+typedef _BSD_SSIZE_T_ ssize_t;
+#undef _BSD_SSIZE_T_
+#endif
__BEGIN_DECLS
-ssize_t strfmon(char *, size_t, const char *m, ...);
+ssize_t strfmon(char *, size_t, const char *, ...);
__END_DECLS
#endif /* _MONETARY_H */
OpenPOWER on IntegriCloud