Define and use `UNW_EMPTY_STRUCT` also for x86
@@ -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;
