arm/setjmp.h:add c++ support

N/A

Change-Id: I619cc15570adeff10f3a9b69bf9a3cff83e625c1
Signed-off-by: guowei15 <guowei15@xiaomi.com>
This commit is contained in:
guowei15
2021-02-24 12:51:40 +08:00
parent dee30cae27
commit e2dce4e2ec
+13
View File
@@ -99,7 +99,20 @@ typedef struct setjmp_buf_s jmp_buf[1];
* Public Function Prototypes
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
int setjmp(jmp_buf env);
void longjmp(jmp_buf env, int val) noreturn_function;
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* __ARCH_ARM_INCLUDE_SETJUMP_H */