[libvirt] [PATCH 1/2] Revert "internal: don't use weak symbols for Win32 platform"

Daniel P. Berrange berrange at redhat.com
Wed Jul 12 10:14:15 UTC 2017


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




More information about the libvir-list mailing list