diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-01-28 23:01:59 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-01-28 23:01:59 +0000 |
| commit | 1fd6dd3616c039881c3bd75c8e002a297d40794e (patch) | |
| tree | 8304b4eeedf76208b75041713b83738338361e09 /clang/lib/Headers/Intrin.h | |
| parent | 740a4d6e4633de866d328cf2bb15c08af49c923d (diff) | |
| download | bcm5719-llvm-1fd6dd3616c039881c3bd75c8e002a297d40794e.tar.gz bcm5719-llvm-1fd6dd3616c039881c3bd75c8e002a297d40794e.zip | |
Intrin.h: include setjmp.h to get a jmp_buf definition
This makes sure that the ms-intrin.cpp test passes by providing
a mock setjmp.h as a test input.
llvm-svn: 200344
Diffstat (limited to 'clang/lib/Headers/Intrin.h')
| -rw-r--r-- | clang/lib/Headers/Intrin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Headers/Intrin.h b/clang/lib/Headers/Intrin.h index 992fabf7aac..6fd1eeb3739 100644 --- a/clang/lib/Headers/Intrin.h +++ b/clang/lib/Headers/Intrin.h @@ -32,6 +32,9 @@ /* First include the standard intrinsics. */ #include <x86intrin.h> +/* For the definition of jmp_buf. */ +#include <setjmp.h> + #ifdef __cplusplus extern "C" { #endif @@ -279,10 +282,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); |

