qemu-barrier: Fix compiler version check for future gcc versions
commit610b823ef66b993660f1ab1447a769f190e4f3b3
authorStefan Weil <sw@weilnetz.de>
Wed, 3 Oct 2012 21:11:02 +0000 (3 23:11 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 13:00:22 +0000 (5 08:00 -0500)
treed0b4e09c4857e4003ddf8b2da7c03d2374c3cb19
parent9b9e3ec1b47f615f635055924e24705cc3f45b20
qemu-barrier: Fix compiler version check for future gcc versions

The current check will give a wrong result for gcc-5.x with x < 4.
Using QEMU_GNUC_PREREQ is simpler and fixes that issue.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-barrier.h