You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/07/30 12:43:33 UTC
[incubator-nuttx] 01/03: locale: Add LC_GLOBAL_LOCALE which is
specified by the standard
This is an automated email from the ASF dual-hosted git repository.
gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit decf7d0ad9719948eacc0a845f37463dd1afa49b
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Jul 28 14:28:34 2021 +0800
locale: Add LC_GLOBAL_LOCALE which is specified by the standard
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
include/locale.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/locale.h b/include/locale.h
index 591f064..2abef76 100644
--- a/include/locale.h
+++ b/include/locale.h
@@ -51,6 +51,8 @@
LC_MONETARY_MASK | LC_NUMERIC_MASK | \
LC_TIME_MASK | LC_MESSAGES_MASK)
+#define LC_GLOBAL_LOCALE ((locale_t)-1)
+
/****************************************************************************
* Public Type Definitions
****************************************************************************/