[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]