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/31 18:35:56 UTC

[incubator-nuttx] 01/02: libc: Reorder LC_XXX as Linux

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 f181ed6fd2a42e80c67508d712e421dd1cdfbca4
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Jul 30 04:53:31 2021 +0800

    libc: Reorder LC_XXX as Linux
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 include/locale.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/locale.h b/include/locale.h
index 2abef76..bc877df 100644
--- a/include/locale.h
+++ b/include/locale.h
@@ -32,13 +32,13 @@
  * Pre-processor Definitions
  ****************************************************************************/
 
-#define LC_ALL           0
-#define LC_COLLATE       1
-#define LC_CTYPE         2
-#define LC_MONETARY      3
-#define LC_NUMERIC       4
-#define LC_TIME          5
-#define LC_MESSAGES      6
+#define LC_CTYPE         0
+#define LC_NUMERIC       1
+#define LC_TIME          2
+#define LC_COLLATE       3
+#define LC_MONETARY      4
+#define LC_MESSAGES      5
+#define LC_ALL           6
 
 #define LC_COLLATE_MASK  (1 << LC_COLLATE)
 #define LC_CTYPE_MASK    (1 << LC_CTYPE)