1 //===-- ucontext.h ----------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 // ===----------------------------------------------------------------------=== 9 10 #ifndef GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_UCONTEXT_H 11 #define GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_UCONTEXT_H 12 13 #include <sys/cdefs.h> 14 15 #ifdef __BIONIC_UCONTEXT_H 16 #include <ucontext.h> 17 #else 18 19 #include <sys/ucontext.h> 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif // __cplusplus 24 25 // Provided by src/android/common/breakpad_getcontext.S 26 int breakpad_getcontext(ucontext_t* ucp); 27 28 #define getcontext(x) breakpad_getcontext(x) 29 30 #ifdef __cplusplus 31 } // extern "C" 32 #endif // __cplusplus 33 34 #endif // __BIONIC_UCONTEXT_H 35 36 #endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_UCONTEXT_H 37