xlocale.h revision 732efd5515b5788339f3da4db04de7cea0f79c86
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*/
#ifndef _XLOCALE_H
#define _XLOCALE_H
/*
* This file supplies declarations for extended locale routines, as
* originally delivered by MacOS X. Many of these things are now
* officially part of XPG7. (Note that while the interfaces are the
* same as MacOS X, there is no shared implementation.)
*
* Those declarations that are part of XPG7 are provided for the in the
* XPG7-specified location. This file lists just the declarations that
* were not part of the standard. These will be useful in their own right,
* and will aid porting programs that don't strictly follow the standard.
*
* Note that it is an error to include this file in a program with strict
* symbol visibilty rules (under strict ANSI or POSIX_C_SOURCE rules.)
* If this is done, the symbols defined here will indeed be exposed to your
* program, but those symbols that are part of the related standards might
* not be.
*/
#include <sys/feature_tests.h>
#include <wchar.h>
#include <locale.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _LOCALE_T
#define _LOCALE_T
#endif
locale_t);
extern unsigned char __mb_cur_max_l(locale_t);
#ifndef MB_CUR_MAX_L
#define MB_CUR_MAX_L(l) (__mb_cur_max_l(l))
#endif
#define _FILEDEFED
#endif
#ifndef getwchar_l
#endif
#ifdef __cplusplus
}
#endif
#endif /* _XLOCALE_H */