]> granicus.if.org Git - clang/commitdiff
intrin.h: include setjmp.h to get a jmp_buf definition
authorReid Kleckner <reid@kleckner.net>
Mon, 27 Jan 2014 19:14:09 +0000 (19:14 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 27 Jan 2014 19:14:09 +0000 (19:14 +0000)
This fixes an error on our _setjmpex declaration for 64-bit code and
allows us to declare _setjmp for 32-bit code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200237 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/Intrin.h

index d2e31b562fd65d0803ee19761c39ecd71034d8bd..fda38a234d00e253258f615fc8bc0a7e2d99f379 100644 (file)
@@ -32,6 +32,8 @@
 /* First include the standard intrinsics. */
 #include <x86intrin.h>
 
+#include <setjmp.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -277,10 +279,7 @@ unsigned __int64 __cdecl _rotr64(unsigned __int64 _Value, int _Shift);
 static __inline__
 unsigned char _rotr8(unsigned char _Value, unsigned char _Shift);
 int _sarx_i32(int, unsigned int);
-
-/* FIXME: Need definition for jmp_buf.
-   int __cdecl _setjmp(jmp_buf); */
-
+int __cdecl _setjmp(jmp_buf);
 unsigned int _shlx_u32(unsigned int, unsigned int);
 unsigned int _shrx_u32(unsigned int, unsigned int);
 void _Store_HLERelease(long volatile *, long);