]> granicus.if.org Git - graphviz/commitdiff
Fix declarations of global variables to only use dllimport if being compiled
authorEmden R. Gansner <erg@alum.mit.edu>
Mon, 23 Mar 2015 18:50:06 +0000 (14:50 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Mon, 23 Mar 2015 18:50:06 +0000 (14:50 -0400)
by Visual Studio (and used by a library other than cgraph).

lib/cgraph/cgraph.h

index f1e2bde028fbe9061a7741356198eb3ca7b1b576..80b3a600be6408a41af0d7b3d5fafa290a10da90 100644 (file)
@@ -182,7 +182,7 @@ struct Agdisc_s {           /* user's discipline */
        /* default resource disciplines */
 
 /*visual studio*/
-#if defined(WIN32) && !defined(CGRAPH_EXPORTS)
+#if defined(_MSC_VER) && !defined(CGRAPH_EXPORTS)
 #define extern __declspec(dllimport)
 #endif
 /*end visual studio*/
@@ -419,7 +419,7 @@ extern agusererrf agseterrf(agusererrf);
 #      define extern  __IMPORT__
 #   endif
 #endif
-#if defined(WIN32) && !defined(CGRAPH_EXPORTS)
+#if defined(_MSC_VER) && !defined(CGRAPH_EXPORTS)
 #define extern __declspec(dllimport)
 #endif