浏览代码

Use __typeof for __libc*longjmp

Peter S. Mazinger 20 年之前
父节点
当前提交
4a2cd146df
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      libpthread/linuxthreads.old/ptlongjmp.c

+ 2 - 5
libpthread/linuxthreads.old/ptlongjmp.c

@@ -21,11 +21,8 @@
 
 /* These functions are not declared anywhere since they shouldn't be
    used at another place but here.  */
-extern void __libc_siglongjmp (sigjmp_buf env, int val)
-     __attribute__ ((noreturn));
-extern void __libc_longjmp (sigjmp_buf env, int val)
-     __attribute__ ((noreturn));
-
+extern __typeof(siglongjmp) __libc_siglongjmp;
+extern __typeof(longjmp) __libc_longjmp;
 
 static void pthread_cleanup_upto(__jmp_buf target)
 {