From 3bcf510e604cfc8f571964316387bbcb15dac471 Mon Sep 17 00:00:00 2001 From: arif Date: Mon, 9 Feb 2009 21:16:51 +0000 Subject: [PATCH] projects files for smyrna --- lib/vmalloc/vmalloc.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/vmalloc/vmalloc.h b/lib/vmalloc/vmalloc.h index 9ceba984a..1419a7905 100644 --- a/lib/vmalloc/vmalloc.h +++ b/lib/vmalloc/vmalloc.h @@ -111,7 +111,17 @@ extern "C" { #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 */ @@ -123,7 +133,6 @@ extern "C" { 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__ -- 2.40.0