diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-09-16 22:03:07 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-23 11:51:05 -0500 |
commit | f8b72754c21789293eb655641459ab43ebd69c66 (patch) | |
tree | 2eba7c233b61c71308055adc3b56f643ac543755 /osdep.h | |
parent | ffe3ce1173e71ca299d08f6542839cc31ea3e3cf (diff) | |
download | qemu-f8b72754c21789293eb655641459ab43ebd69c66.tar.gz qemu-f8b72754c21789293eb655641459ab43ebd69c66.tar.bz2 qemu-f8b72754c21789293eb655641459ab43ebd69c66.zip |
Move macro QEMU_GNUC_PREREQ to compiler.h
The macro is compiler specific and does not depend on the operating system.
Move macro QEMU_GNUC_PREREQ from osdep.h to compiler.h
and use it to simplify existing code.
host-utils.h uses this macro, so it now needs compiler.h
instead of osdep.h.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'osdep.h')
-rw-r--r-- | osdep.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -81,13 +81,6 @@ #define qemu_printf printf -#if defined (__GNUC__) && defined (__GNUC_MINOR__) -# define QEMU_GNUC_PREREQ(maj, min) \ - ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) -#else -# define QEMU_GNUC_PREREQ(maj, min) 0 -#endif - int qemu_daemon(int nochdir, int noclose); void *qemu_memalign(size_t alignment, size_t size); void *qemu_vmalloc(size_t size); |