aboutsummaryrefslogtreecommitdiff
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-03 15:12:16 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-03 15:12:16 +0000
commitf3e3285dcdcf84aa3f19ae888a914660922ad5f7 (patch)
tree55ecdba112be12e12851967f03be58d0fb492a3e /linux-user/qemu.h
parent2e13d23ac089e554fc0efd285ec2176ca36576c7 (diff)
downloadqemu-f3e3285dcdcf84aa3f19ae888a914660922ad5f7.zip
qemu-f3e3285dcdcf84aa3f19ae888a914660922ad5f7.tar.gz
qemu-f3e3285dcdcf84aa3f19ae888a914660922ad5f7.tar.bz2
Fix some compiler warnings.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3520 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r--linux-user/qemu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index d0f650e..6fc0bbf 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -9,10 +9,16 @@
#ifdef TARGET_ABI32
typedef uint32_t abi_ulong;
typedef int32_t abi_long;
+#define TARGET_ABI_FMT_lx "%08x"
+#define TARGET_ABI_FMT_ld "%d"
+#define TARGET_ABI_FMT_lu "%u"
#define TARGET_ABI_BITS 32
#else
typedef target_ulong abi_ulong;
typedef target_long abi_long;
+#define TARGET_ABI_FMT_lx TARGET_FMT_lx
+#define TARGET_ABI_FMT_ld TARGET_FMT_ld
+#define TARGET_ABI_FMT_lu TARGET_FMT_lu
#define TARGET_ABI_BITS TARGET_LONG_BITS
#endif