arm/setjmp.h:add c++ support
N/A Change-Id: I619cc15570adeff10f3a9b69bf9a3cff83e625c1 Signed-off-by: guowei15 <guowei15@xiaomi.com>
This commit is contained in:
parent
282ab797bf
commit
95b5dc523e
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue