LibC: jmp_buf and sigjmp_buf should be distinct types

This makes it possible to build 'vim' with more features enabled.
This commit is contained in:
Andreas Kling 2019-11-17 21:01:12 +01:00
parent 5eef2f78b0
commit 9c35feb14c
Notes: sideshowbarker 2024-07-19 11:10:18 +09:00

View file

@ -15,11 +15,12 @@ struct __jmp_buf {
};
typedef struct __jmp_buf jmp_buf[1];
typedef struct __jmp_buf sigjmp_buf[1];
int setjmp(jmp_buf);
void longjmp(jmp_buf, int val);
int sigsetjmp(jmp_buf, int savesigs);
void siglongjmp(jmp_buf, int val);
int sigsetjmp(sigjmp_buf, int savesigs);
void siglongjmp(sigjmp_buf, int val);
__END_DECLS