diff options
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); |