]> granicus.if.org Git - graphviz/commitdiff
changes required for MS visual studio DLL build
authorarif <devnull@localhost>
Wed, 21 Jan 2009 16:47:00 +0000 (16:47 +0000)
committerarif <devnull@localhost>
Wed, 21 Jan 2009 16:47:00 +0000 (16:47 +0000)
lib/common/pointset.h

index 9a839fc00f7411e9cf6bcd1f5901761c408cfdfc..0f865598a5c780ecb1417c0c90e0b1e15157bb56 100644 (file)
@@ -29,6 +29,14 @@ extern "C" {
 #define extern
 #endif
 
+/*visual studio*/
+#ifdef WIN32_DLL
+#ifndef GVC_EXPORTS
+#define extern __declspec(dllimport)
+#endif
+#endif
+/*end visual studio*/
+
        extern PointSet *newPS(void);
     extern void freePS(PointSet *);
     extern void insertPS(PointSet *, point);