This reverts commit b9473d8b11d79c8990dcbba13bbf7d4051288a1e. --- src/internal.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/internal.h b/src/internal.h index edc3587..00edd4f 100644 --- a/src/internal.h +++ b/src/internal.h @@ -128,14 +128,10 @@ * */ # ifndef ATTRIBUTE_MOCKABLE -# if defined(WIN32) -# define ATTRIBUTE_MOCKABLE +# if __GNUC_PREREQ(4, 5) +# define ATTRIBUTE_MOCKABLE __attribute__((__noinline__, __noclone__, __weak__)) # else -# if __GNUC_PREREQ(4, 5) -# define ATTRIBUTE_MOCKABLE __attribute__((__noinline__, __noclone__, __weak__)) -# else -# define ATTRIBUTE_MOCKABLE __attribute__((__noinline__, __weak__)) -# endif +# define ATTRIBUTE_MOCKABLE __attribute__((__noinline__, __weak__)) # endif # endif -- 2.9.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list