aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-16 13:36:57 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-16 13:36:57 +0000
commitac509d88877c07bb06497206d74a2baa25b6d895 (patch)
tree1146602c5a370fd479b139f72746e598c7a7178a /exec-all.h
parentblock-raw is not a protocol (diff)
downloadqemu-kvm-ac509d88877c07bb06497206d74a2baa25b6d895.tar.gz
qemu-kvm-ac509d88877c07bb06497206d74a2baa25b6d895.tar.bz2
qemu-kvm-ac509d88877c07bb06497206d74a2baa25b6d895.zip
Move offsetof to osdep.h, remove local defintions.
With this container_of can actually be used without causing build errors. Reformat container_of. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5234 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/exec-all.h b/exec-all.h
index c5009dc62..84944c585 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -256,10 +256,6 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
TranslationBlock *tb_find_pc(unsigned long pc_ptr);
-#ifndef offsetof
-#define offsetof(type, field) ((size_t) &((type *)0)->field)
-#endif
-
#if defined(_WIN32)
#define ASM_DATA_SECTION ".section \".data\"\n"
#define ASM_PREVIOUS_SECTION ".section .text\n"