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 committed by Gustavo Henrique Nihei
parent 282ab797bf
commit 95b5dc523e
1 changed files with 13 additions and 0 deletions

View File

@ -84,7 +84,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 */