diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-12 16:15:04 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-12 16:15:04 +0000 |
commit | bad5b1ec8e5d2b68be2c0fd33db2094942e6b685 (patch) | |
tree | 02b7b8b596b9492f1b59872da2d41b445906bf6b /osdep.h | |
parent | 5b7ada46e5eca0fa9c94def7d5fa548590fac826 (diff) | |
download | hqemu-bad5b1ec8e5d2b68be2c0fd33db2094942e6b685.zip hqemu-bad5b1ec8e5d2b68be2c0fd33db2094942e6b685.tar.gz |
Define macro QEMU_GNUC_PREREQ and use it
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5467 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'osdep.h')
-rw-r--r-- | osdep.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -62,6 +62,13 @@ #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 + void *qemu_memalign(size_t alignment, size_t size); void *qemu_vmalloc(size_t size); void qemu_vfree(void *ptr); |