From: Alan Cox Date: Sun, 18 Feb 2018 14:03:35 +0000 (+0000) Subject: pdp11: setjmp structure X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=48239320b895820e3259038624572ad3a1d15706;p=FUZIX.git pdp11: setjmp structure --- diff --git a/Library/include/setjmp.h b/Library/include/setjmp.h index c3c2736f..79e694fb 100644 --- a/Library/include/setjmp.h +++ b/Library/include/setjmp.h @@ -35,6 +35,12 @@ extern int setjmp(jmp_buf __env); __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val); +#elif defined(__pdp11__) + + typedef uint16_t jmp_buf[5]; + extern int setjmp(jmp_buf __env); + __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val); + #else #error jmp_buf definition not set for this architecture #endif