Restructure of mono.sln and build properties to better fix static/dynamic library...
[mono.git] / mono / mini / mini.h
index 42a0356ef839cfc17c5bf341d1b088f247898055..1ce7a63264a5790cfeeef1afa271db606f938bc6 100644 (file)
  * The mini code should not have any compile time dependencies on the GC being used, so the same object file from mini/
  * can be linked into both mono and mono-sgen.
  */
+#if !defined(MONO_DLL_EXPORT) || !defined(_MSC_VER)
 #if defined(HAVE_BOEHM_GC) || defined(HAVE_SGEN_GC)
 #error "The code in mini/ should not depend on these defines."
 #endif
+#endif
 
 #ifndef __GNUC__
 /*#define __alignof__(a) sizeof(a)*/