locale.h: Add a bogus definition of locale_t

This commit is contained in:
Gregory Nutt
2017-05-12 10:13:18 -06:00
parent 332ab0359e
commit 14ae6df182
3 changed files with 16 additions and 5 deletions
+1
View File
@@ -48,6 +48,7 @@
namespace std
{
using ::locale_t;
using ::setlocale;
using ::localeconv;
}
+10
View File
@@ -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
****************************************************************************/