1
0
Fork 0
forked from nuttx/nuttx-update

ctype.h:move locale macro define to lib_ctype file

Macro definitions such as _S in public header files can cause compilation problems under the MSVC compiler.
Move macro definitions that are not used in public locations to the corresponding files

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-09-30 16:14:05 +08:00 committed by Xiang Xiao
parent 07d5bc2c50
commit 1bbcbc3440
2 changed files with 17 additions and 17 deletions

View file

@ -33,23 +33,6 @@
#include <nuttx/compiler.h>
#include <langinfo.h>
/****************************************************************************
* Macro Definitions
****************************************************************************/
/* GNU libstdc++ is expecting ctype.h to define a few macros for
* locale related functions like C++ streams.
*/
#define _U 01
#define _L 02
#define _N 04
#define _S 010
#define _P 020
#define _C 040
#define _X 0100
#define _B 0200
/****************************************************************************
* Inline Functions
****************************************************************************/

View file

@ -26,6 +26,23 @@
#include <ctype.h>
/****************************************************************************
* Macro Definitions
****************************************************************************/
/* GNU libstdc++ is expecting ctype.h to define a few macros for
* locale related functions like C++ streams.
*/
#define _U 01
#define _L 02
#define _N 04
#define _S 010
#define _P 020
#define _C 040
#define _X 0100
#define _B 0200
/****************************************************************************
* Private Types
****************************************************************************/