#if !_BLD_vmalloc && defined(__IMPORT__)
#define extern __IMPORT__
#endif
- extern Vmethod_t *Vmbest; /* best allocation */
+
+/*visual studio*/
+#ifdef WIN32_DLL
+#ifndef VMALLOC_EXPORTS
+#define extern __declspec(dllimport)
+#else
+#define extern __declspec(dllexport)
+#endif
+#endif
+/*end visual studio*/
+ extern Vmethod_t *Vmbest; /* best allocation */
extern Vmethod_t *Vmlast; /* last-block allocation */
extern Vmethod_t *Vmpool; /* pool allocation */
extern Vmethod_t *Vmdebug; /* allocation with debugging */
extern Vmalloc_t *Vmheap; /* heap region */
extern Vmalloc_t *Vmregion; /* malloc region */
-#undef extern
_END_EXTERNS_ _BEGIN_EXTERNS_ /* public functions */
#if _BLD_vmalloc && defined(__EXPORT__)
#define extern __EXPORT__