summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libunwind-x86.h8
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;