Skip to content

Commit

Permalink
Fixed namespace pollution:
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
bde authored and bde committed Oct 4, 2001
1 parent 1e25e40 commit 5549145
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions include/monetary.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 5549145

Please sign in to comment.