mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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:
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user