X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fatomic.c;h=543e8ce9b0cb2c7171035f965964887b9835bd42;hb=23a69556ded315d102337bf13971411188e26bcd;hp=2f5e8a8a673a8688e78c577b57b7c194effaad76;hpb=c866c3eefb79ea86be468e4f95c7012fa3d2db4f;p=mono.git diff --git a/mono/utils/atomic.c b/mono/utils/atomic.c index 2f5e8a8a673..543e8ce9b0c 100644 --- a/mono/utils/atomic.c +++ b/mono/utils/atomic.c @@ -12,6 +12,7 @@ #include #include +#include #if defined (WAPI_NO_ATOMIC_ASM) || defined (BROKEN_64BIT_ATOMICS_INTRINSIC) @@ -584,7 +585,6 @@ InterlockedCompareExchange64(volatile gint64 *dest, gint64 exch, gint64 comp) #endif #endif -#if defined(HOST_WIN32) && defined(_MSC_VER) -// Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty. -void __mono_win32_atomic_lnk4221(void) {} +#if !defined (WAPI_NO_ATOMIC_ASM) && !defined (BROKEN_64BIT_ATOMICS_INTRINSIC) && !defined (NEED_64BIT_CMPXCHG_FALLBACK) +MONO_EMPTY_SOURCE_FILE (atomic); #endif