mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
locale.h: Add a bogus definition of locale_t
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
|
||||
namespace std
|
||||
{
|
||||
using ::locale_t;
|
||||
using ::setlocale;
|
||||
using ::localeconv;
|
||||
}
|
||||
|
||||
@@ -59,6 +59,10 @@
|
||||
* Public Type Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* OpenGroup.org: "The locale.h header shall define the lconv structure,
|
||||
* which shall include at least the following members. ..."
|
||||
*/
|
||||
|
||||
struct lconv
|
||||
{
|
||||
FAR char *decimal_point;
|
||||
@@ -87,6 +91,12 @@ struct lconv
|
||||
FAR char int_p_sign_posn;
|
||||
};
|
||||
|
||||
/* OpenGroup.org: The locale.h header shall define the locale_t type,
|
||||
* representing a locale object
|
||||
*/
|
||||
|
||||
typedef FAR void *locale_t;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user