diff options
author | mike <mike@FreeBSD.org> | 2002-09-18 05:54:25 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-18 05:54:25 +0000 |
commit | 2db6065cba040afe3448b330df0a30ed74c303da (patch) | |
tree | 89fb74e94552ad27e5d528256a131bd25b02e639 /include | |
parent | 24c9e9c70771f6f20ab69d91fb849d2c64cfcc25 (diff) | |
download | FreeBSD-src-2db6065cba040afe3448b330df0a30ed74c303da.zip FreeBSD-src-2db6065cba040afe3448b330df0a30ed74c303da.tar.gz |
o Don't include <nl_types.h>, instead provide a typedef for nl_item.
o Use relatively new visibility primitives to conditionalize some
constants.
Diffstat (limited to 'include')
-rw-r--r-- | include/langinfo.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/langinfo.h b/include/langinfo.h index 9790432..59b50f9 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -30,7 +30,12 @@ #define _LANGINFO_H_ #include <sys/cdefs.h> -#include <nl_types.h> +#include <sys/_types.h> + +#ifndef _NL_ITEM_DECLARED +typedef __nl_item nl_item; +#define _NL_ITEM_DECLARED +#endif #define CODESET 0 /* codeset name */ #define D_T_FMT 1 /* string for formatting date and time */ @@ -97,12 +102,17 @@ #define YESEXPR 52 /* affirmative response expression */ #define NOEXPR 53 /* negative response expression */ + +#if __BSD_VISIBLE || __XSI_VISIBLE <= 500 #define YESSTR 54 /* affirmative response for yes/no queries */ #define NOSTR 55 /* negative response for yes/no queries */ +#endif #define CRNCYSTR 56 /* currency symbol */ +#if __BSD_VISIBLE #define D_MD_ORDER 57 /* month/day order (local extension) */ +#endif __BEGIN_DECLS char *nl_langinfo(nl_item); |