Minor changes from review of last PR
This commit is contained in:
parent
8039173c9e
commit
97b3240737
@ -40,10 +40,10 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <string.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
#ifdef CONFIG_LIBC_LOCALE
|
#ifdef CONFIG_LIBC_LOCALE
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
@ -63,7 +63,6 @@
|
|||||||
|
|
||||||
FAR char *setlocale(int category, FAR const char *locale)
|
FAR char *setlocale(int category, FAR const char *locale)
|
||||||
{
|
{
|
||||||
|
|
||||||
return ((strcmp(locale, "POSIX") == 0 || strcmp(locale, "C") == 0 ||
|
return ((strcmp(locale, "POSIX") == 0 || strcmp(locale, "C") == 0 ||
|
||||||
strcmp(locale, "") == 0) ? "C" : NULL);
|
strcmp(locale, "") == 0) ? "C" : NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user