Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / sgen / sgen-layout-stats.c
index 44ddf94b24dad9e505796d536d2d0c6f99417e14..103ef31436465d683b500229926c512e575adc03 100644 (file)
@@ -1,4 +1,5 @@
-/*
+/**
+ * \file
  * Copyright Xamarin Inc (http://www.xamarin.com)
  *
  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
@@ -9,6 +10,7 @@
 
 #include "sgen/sgen-gc.h"
 #include "sgen/sgen-layout-stats.h"
+#include <mono/utils/mono-compiler.h>
 
 #ifdef SGEN_OBJECT_LAYOUT_STATISTICS
 
@@ -60,9 +62,6 @@ sgen_object_layout_dump (FILE *out)
 }
 #else
 
-#ifdef _MSC_VER
-// Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty.
-void __mono_win32_sgen_layout_stats_quiet_lnk4221(void) {}
-#endif
+MONO_EMPTY_SOURCE_FILE (sgen_layout_stats);
 #endif /* SGEN_OBJECT_LAYOUT_STATISTICS */
 #endif