]> granicus.if.org Git - graphviz/commitdiff
Revert "Windows: cgraph now generating .lib file."
authorErwin Janssen <erwinjanssen@outlook.com>
Tue, 21 Jun 2016 12:36:11 +0000 (14:36 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Tue, 21 Jun 2016 12:36:11 +0000 (14:36 +0200)
This reverts commit f0a43b2c25ba059b3f082f750fcb4558c0559140.

lib/cgraph/cgraph.h

index ba3e807efc6bd96c23d752014b07d05b0fd6fd4e..1e9f9241ee705d6928b781efb9b0437dd8dd67b3 100644 (file)
@@ -194,12 +194,8 @@ struct Agdisc_s {          /* user's discipline */
        /* default resource disciplines */
 
 /*visual studio*/
-#if defined(WIN32)
-#   if !defined(CGRAPH_EXPORTS)
-#       define extern __declspec(dllimport)
-#   else
-#       define extern __declspec(dllexport)
-#   endif
+#if defined(_MSC_VER) && !defined(CGRAPH_EXPORTS)
+#define extern __declspec(dllimport)
 #endif
 /*end visual studio*/