diff options
author | Steve MacLean <Steve.MacLean@Microsoft.com> | 2020-05-21 17:49:53 -0400 |
---|---|---|
committer | Steve MacLean <Steve.MacLean@Microsoft.com> | 2020-05-21 18:02:15 -0400 |
commit | da8dc856ab5646e04160060aae9425db3f5428ce (patch) | |
tree | d7e15df27d0b9007e8db57d99c189a62fe398ee8 /include/unwind.h | |
parent | d627f4aea024f7d1bfaa7ce7293379316c7713ea (diff) | |
download | libunwind-da8dc856ab5646e04160060aae9425db3f5428ce.tar.gz |
Use C11 alignas(x)
Diffstat (limited to 'include/unwind.h')
-rw-r--r-- | include/unwind.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/unwind.h b/include/unwind.h index 7cf128de..8eb5ff75 100644 --- a/include/unwind.h +++ b/include/unwind.h @@ -28,6 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* For uint64_t */ #include <stdint.h> +#include <stdalign.h> #ifdef __cplusplus extern "C" { @@ -76,11 +77,11 @@ typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (int, _Unwind_Action, even on 32-bit machines for gcc compatibility. */ struct _Unwind_Exception { - uint64_t exception_class; + uint64_t alignas(8) exception_class; _Unwind_Exception_Cleanup_Fn exception_cleanup; unsigned long private_1; unsigned long private_2; - } __attribute__((__aligned__)); + }; extern _Unwind_Reason_Code _Unwind_RaiseException (struct _Unwind_Exception *); extern _Unwind_Reason_Code _Unwind_ForcedUnwind (struct _Unwind_Exception *, |