1*9729cf09SDimitry Andric // -*- C++ -*-
2*9729cf09SDimitry Andric //===--------------------------- setjmp.h ---------------------------------===//
3*9729cf09SDimitry Andric //
4*9729cf09SDimitry Andric //                     The LLVM Compiler Infrastructure
5*9729cf09SDimitry Andric //
6*9729cf09SDimitry Andric // This file is dual licensed under the MIT and the University of Illinois Open
7*9729cf09SDimitry Andric // Source Licenses. See LICENSE.TXT for details.
8*9729cf09SDimitry Andric //
9*9729cf09SDimitry Andric //===----------------------------------------------------------------------===//
10*9729cf09SDimitry Andric 
11*9729cf09SDimitry Andric #ifndef _LIBCPP_SETJMP_H
12*9729cf09SDimitry Andric #define _LIBCPP_SETJMP_H
13*9729cf09SDimitry Andric 
14*9729cf09SDimitry Andric /*
15*9729cf09SDimitry Andric     setjmp.h synopsis
16*9729cf09SDimitry Andric 
17*9729cf09SDimitry Andric Macros:
18*9729cf09SDimitry Andric 
19*9729cf09SDimitry Andric     setjmp
20*9729cf09SDimitry Andric 
21*9729cf09SDimitry Andric Types:
22*9729cf09SDimitry Andric 
23*9729cf09SDimitry Andric     jmp_buf
24*9729cf09SDimitry Andric 
25*9729cf09SDimitry Andric void longjmp(jmp_buf env, int val);
26*9729cf09SDimitry Andric 
27*9729cf09SDimitry Andric */
28*9729cf09SDimitry Andric 
29*9729cf09SDimitry Andric #include <__config>
30*9729cf09SDimitry Andric 
31*9729cf09SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
32*9729cf09SDimitry Andric #pragma GCC system_header
33*9729cf09SDimitry Andric #endif
34*9729cf09SDimitry Andric 
35*9729cf09SDimitry Andric #include_next <setjmp.h>
36*9729cf09SDimitry Andric 
37*9729cf09SDimitry Andric #ifdef __cplusplus
38*9729cf09SDimitry Andric 
39*9729cf09SDimitry Andric #ifndef setjmp
40*9729cf09SDimitry Andric #define setjmp(env) setjmp(env)
41*9729cf09SDimitry Andric #endif
42*9729cf09SDimitry Andric 
43*9729cf09SDimitry Andric #endif // __cplusplus
44*9729cf09SDimitry Andric 
45*9729cf09SDimitry Andric #endif  // _LIBCPP_SETJMP_H
46