Revert "internal: don't use weak symbols for Win32 platform"

This reverts commit b9473d8b11.
This commit is contained in:
Daniel P. Berrange 2017-07-12 11:07:05 +01:00
parent 1701ba6fdc
commit 8ba33d5e2d

View File

@ -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