]> granicus.if.org Git - graphviz/commitdiff
projects files for smyrna
authorarif <devnull@localhost>
Mon, 9 Feb 2009 21:16:51 +0000 (21:16 +0000)
committerarif <devnull@localhost>
Mon, 9 Feb 2009 21:16:51 +0000 (21:16 +0000)
lib/vmalloc/vmalloc.h

index 9ceba984aff1072a01b02095b04413fa16dc0c22..1419a790595b23d592dbc902c61502eb81af6c6e 100644 (file)
@@ -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__