X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Fsetjmp.h;h=5eb7bb5ee187feb6d018215309b29bcf701f5b2a;hb=230612b2efeeb769f1d96193ec01b10bd36d9873;hp=53f3fbf234a399aa456c0646c268e90b591bcd45;hpb=d0b4559f2936f6d9f06be0f7c3c51527a480ec0d;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc.so_src/include_exp/setjmp.h b/Usermode/Libraries/libc.so_src/include_exp/setjmp.h index 53f3fbf2..5eb7bb5e 100644 --- a/Usermode/Libraries/libc.so_src/include_exp/setjmp.h +++ b/Usermode/Libraries/libc.so_src/include_exp/setjmp.h @@ -8,10 +8,14 @@ #ifndef _LIBC_SETJMP_H_ #define _LIBC_SETJMP_H_ -#if ARCHDIR_is_x86 -typedef uint32_t jmp_buf[8]; -#elif ARCHDIR_is_x86_64 -typedef uint64_t jmp_buf[16]; +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(__i386__) +typedef void *jmp_buf[8]; +#elif defined(__amd64__) +typedef void *jmp_buf[16]; #else # error "Unknown Architecture" #endif @@ -19,5 +23,9 @@ typedef uint64_t jmp_buf[16]; extern int setjmp(jmp_buf buf); extern void longjmp(jmp_buf buf, int val); +#ifdef __cplusplus +} +#endif + #endif