fixbug, syntax error on gcc15
Signed-off-by: Chao Wei <chao.wei@sophgo.com>
This commit is contained in:
@@ -44,7 +44,11 @@ typedef unsigned long long uint64_t;
|
|||||||
#error "Unexpected __riscv_xlen"
|
#error "Unexpected __riscv_xlen"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __STDC_VERSION__ < 202000L
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
|
#define true 1
|
||||||
|
#define false 0
|
||||||
|
#endif
|
||||||
typedef unsigned long ulong;
|
typedef unsigned long ulong;
|
||||||
typedef unsigned long uintptr_t;
|
typedef unsigned long uintptr_t;
|
||||||
typedef unsigned long size_t;
|
typedef unsigned long size_t;
|
||||||
@@ -61,9 +65,6 @@ typedef uint32_t be32_t;
|
|||||||
typedef uint64_t le64_t;
|
typedef uint64_t le64_t;
|
||||||
typedef uint64_t be64_t;
|
typedef uint64_t be64_t;
|
||||||
|
|
||||||
#define true 1
|
|
||||||
#define false 0
|
|
||||||
|
|
||||||
#define NULL ((void *)0)
|
#define NULL ((void *)0)
|
||||||
|
|
||||||
#define __packed __attribute__((packed))
|
#define __packed __attribute__((packed))
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ enum semihosting_open_mode {
|
|||||||
|
|
||||||
#ifdef CONFIG_SERIAL_SEMIHOSTING
|
#ifdef CONFIG_SERIAL_SEMIHOSTING
|
||||||
int semihosting_init(void);
|
int semihosting_init(void);
|
||||||
int semihosting_enabled(void);
|
bool semihosting_enabled(void);
|
||||||
#else
|
#else
|
||||||
static inline int semihosting_init(void) { return SBI_ENODEV; }
|
static inline int semihosting_init(void) { return SBI_ENODEV; }
|
||||||
static inline int semihosting_enabled(void) { return 0; }
|
static inline int semihosting_enabled(void) { return 0; }
|
||||||
|
|||||||
Reference in New Issue
Block a user