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:
parent
07d5bc2c50
commit
1bbcbc3440
2 changed files with 17 additions and 17 deletions
|
@ -33,23 +33,6 @@
|
||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <langinfo.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
|
* Inline Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
|
@ -26,6 +26,23 @@
|
||||||
|
|
||||||
#include <ctype.h>
|
#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
|
* Private Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue