diff options
author | Mosè Giordano <mose@gnu.org> | 2022-04-28 23:51:25 +0100 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2022-05-22 10:57:52 -0700 |
commit | 8584d6fd661d25b75697e4024c79f791848179ce (patch) | |
tree | 9873aad21af7f5c2c53cc8026c85f786f71b082c | |
parent | 554ccbea9b61374bd8ab21cc1d9b5e39928b6043 (diff) | |
download | libunwind-8584d6fd661d25b75697e4024c79f791848179ce.tar.gz |
Define and use `UNW_EMPTY_STRUCT` also for x86
-rw-r--r-- | include/libunwind-x86.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libunwind-x86.h b/include/libunwind-x86.h index 542c1774..d3b741d3 100644 --- a/include/libunwind-x86.h +++ b/include/libunwind-x86.h @@ -34,6 +34,10 @@ extern "C" { #include <inttypes.h> #include <ucontext.h> +#ifndef UNW_EMPTY_STRUCT +# define UNW_EMPTY_STRUCT uint8_t unused; +#endif + #define UNW_TARGET x86 #define UNW_TARGET_X86 1 @@ -158,7 +162,7 @@ x86_regnum_t; typedef struct unw_tdep_save_loc { /* Additional target-dependent info on a save location. */ - char unused; + UNW_EMPTY_STRUCT } unw_tdep_save_loc_t; @@ -170,7 +174,7 @@ typedef ucontext_t unw_tdep_context_t; typedef struct { /* no x86-specific auxiliary proc-info */ - char unused; + UNW_EMPTY_STRUCT } unw_tdep_proc_info_t; |