locale.h: Add a bogus definition of locale_t
This commit is contained in:
parent
332ab0359e
commit
14ae6df182
@ -12,11 +12,11 @@ Contents:
|
|||||||
Files in this directory
|
Files in this directory
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
dev_null.c and dev_zero.c
|
dev_null.c, dev_urandom, and dev_zero.c
|
||||||
These files provide the standard /dev/null and /dev/zero devices.
|
These files provide the standard /dev/null, /dev/urandom, and /dev/zero
|
||||||
See include/nuttx/fs/fs.h for functions that should be called if you
|
devices. See include/nuttx/drivers/driers.h for prototypes of functions
|
||||||
want to register these devices (devnull_register() and
|
that should be called if you want to register these devices
|
||||||
devzero_register()).
|
(devnull_register(), devurandom_register(), and devzero_register()).
|
||||||
|
|
||||||
pwm.c
|
pwm.c
|
||||||
Provides the "upper half" of a pulse width modulation (PWM) driver.
|
Provides the "upper half" of a pulse width modulation (PWM) driver.
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
using ::locale_t;
|
||||||
using ::setlocale;
|
using ::setlocale;
|
||||||
using ::localeconv;
|
using ::localeconv;
|
||||||
}
|
}
|
||||||
|
@ -59,6 +59,10 @@
|
|||||||
* Public Type Definitions
|
* Public Type Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/* OpenGroup.org: "The locale.h header shall define the lconv structure,
|
||||||
|
* which shall include at least the following members. ..."
|
||||||
|
*/
|
||||||
|
|
||||||
struct lconv
|
struct lconv
|
||||||
{
|
{
|
||||||
FAR char *decimal_point;
|
FAR char *decimal_point;
|
||||||
@ -87,6 +91,12 @@ struct lconv
|
|||||||
FAR char int_p_sign_posn;
|
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
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user