aboutsummaryrefslogtreecommitdiff
path: root/src/common/dwarf/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dwarf/types.h')
-rw-r--r--src/common/dwarf/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/dwarf/types.h b/src/common/dwarf/types.h
index 5f49ff9d..08a325aa 100644
--- a/src/common/dwarf/types.h
+++ b/src/common/dwarf/types.h
@@ -43,4 +43,11 @@ typedef unsigned short uint16;
typedef unsigned int uint32;
typedef unsigned long long uint64;
+#ifdef __PTRDIFF_TYPE__
+typedef __PTRDIFF_TYPE__ intptr;
+typedef unsigned __PTRDIFF_TYPE__ uintptr;
+#else
+#error "Can't find pointer-sized integral types."
+#endif
+
#endif // _COMMON_DWARF_TYPES_H__