mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
rt: Add libunwind.h support on Mac OS X
This commit is contained in:
parent
d1c27ba9e0
commit
18cf4d904c
21
src/rt/rust_unwind.h
Normal file
21
src/rt/rust_unwind.h
Normal file
@ -0,0 +1,21 @@
|
||||
// Unwinding stuff missing on some architectures (Mac OS X).
|
||||
|
||||
#ifndef RUST_UNWIND_H
|
||||
#define RUST_UNWIND_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <libunwind.h>
|
||||
|
||||
typedef int _Unwind_Action;
|
||||
typedef void _Unwind_Context;
|
||||
typedef void _Unwind_Exception;
|
||||
typedef int _Unwind_Reason_Code;
|
||||
|
||||
#else
|
||||
|
||||
#include <unwind.h>
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "rust_gc.h"
|
||||
#include "rust_internal.h"
|
||||
#include "rust_unwind.h"
|
||||
#include "rust_upcall.h"
|
||||
#include <stdint.h>
|
||||
#include <unwind.h>
|
||||
|
||||
// Upcalls.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user