From ac509d88877c07bb06497206d74a2baa25b6d895 Mon Sep 17 00:00:00 2001 From: balrog Date: Tue, 16 Sep 2008 13:36:57 +0000 Subject: 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 --- monitor.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 43b188a..8ac5db9 100644 --- a/monitor.c +++ b/monitor.c @@ -40,10 +40,6 @@ //#define DEBUG //#define DEBUG_COMPLETION -#ifndef offsetof -#define offsetof(type, field) ((size_t) &((type *)0)->field) -#endif - /* * Supported types: * -- cgit v1.1