diff -Naur graphviz-2.44.1-orig/cmd/dot/dot.c graphviz-2.44.1/cmd/dot/dot.c
--- graphviz-2.44.1-orig/cmd/dot/dot.c	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/cmd/dot/dot.c	2020-10-30 13:16:53.107102000 +0300
@@ -20,7 +20,7 @@
 #include "gvc.h"
 #include "gvio.h"
 
-#ifdef WIN32_DLL
+#ifdef _MSC_VER
 __declspec(dllimport) boolean MemTest;
 __declspec(dllimport) int GvExitOnUsage;
 /*gvc.lib cgraph.lib*/
diff -Naur graphviz-2.44.1-orig/cmd/gvedit/main.cpp graphviz-2.44.1/cmd/gvedit/main.cpp
--- graphviz-2.44.1-orig/cmd/gvedit/main.cpp	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/cmd/gvedit/main.cpp	2020-10-30 13:16:53.122093100 +0300
@@ -27,7 +27,7 @@
 #include "globals.h"
 
 
-#ifdef _WIN32
+#ifdef _MSC_VER
 /*gvc.lib cgraph.lib*/
 #pragma comment( lib, "cgraph.lib" )
 #pragma comment( lib, "gvc.lib" )
diff -Naur graphviz-2.44.1-orig/cmd/gvmap/cluster.c graphviz-2.44.1/cmd/gvmap/cluster.c
--- graphviz-2.44.1-orig/cmd/gvmap/cluster.c	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/cmd/gvmap/cluster.c	2020-10-30 13:16:53.129069800 +0300
@@ -31,7 +31,7 @@
 #include "DotIO.h"
 #include "colorutil.h"
 
-#ifdef _WIN32 /*dependencies*/
+#ifdef _MSC_VER /*dependencies*/
     #pragma comment( lib, "cgraph.lib" )
     #pragma comment( lib, "gvc.lib" )
     #pragma comment( lib, "ingraphs.lib" )
diff -Naur graphviz-2.44.1-orig/plugin/gdk/gvloadimage_gdk.c graphviz-2.44.1/plugin/gdk/gvloadimage_gdk.c
--- graphviz-2.44.1-orig/plugin/gdk/gvloadimage_gdk.c	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/plugin/gdk/gvloadimage_gdk.c	2020-10-30 13:16:53.492930900 +0300
@@ -23,7 +23,7 @@
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include <gdk/gdkcairo.h>
 
-#ifdef _WIN32 //*dependencies
+#ifdef _MSC_VER //*dependencies
     #pragma comment( lib, "gvc.lib" )
     #pragma comment( lib, "glib-2.0.lib" )
     #pragma comment( lib, "cairo.lib" )
diff -Naur graphviz-2.44.1-orig/lib/common/utils.c graphviz-2.44.1/lib/common/utils.c
--- graphviz-2.44.1-orig/lib/common/utils.c	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/lib/common/utils.c	2020-10-30 14:42:12.445673000 +0300
@@ -2005,7 +2005,9 @@
 #endif
 
 #ifndef HAVE_DRAND48
+#ifdef _MSC_VER
 #pragma weak drand48
+#endif
 double drand48(void)
 {
     double d;
diff -Naur graphviz-2.44.1-orig/plugin/visio/gvplugin_visio.c graphviz-2.44.1/plugin/visio/gvplugin_visio.c
--- graphviz-2.44.1-orig/plugin/visio/gvplugin_visio.c	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/plugin/visio/gvplugin_visio.c	2020-10-30 13:16:53.673106100 +0300
@@ -11,7 +11,7 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#ifdef _WIN32 //*dependencies
+#ifdef _MSC_VER //*dependencies
     #pragma comment( lib, "gvc.lib" )
     #pragma comment( lib, "graph.lib" )
 #endif
diff -Naur graphviz-2.44.1-orig/plugin/webp/gvloadimage_webp.c graphviz-2.44.1/plugin/webp/gvloadimage_webp.c
--- graphviz-2.44.1-orig/plugin/webp/gvloadimage_webp.c	2020-06-29 11:47:18.000000000 +0300
+++ graphviz-2.44.1/plugin/webp/gvloadimage_webp.c	2020-10-30 13:16:53.700032300 +0300
@@ -24,7 +24,7 @@
 #include <cairo.h>
 #include <webp/decode.h>
 
-#ifdef _WIN32 //*dependencies
+#ifdef _MSC_VER //*dependencies
     #pragma comment( lib, "gvc.lib" )
     #pragma comment( lib, "glib-2.0.lib" )
     #pragma comment( lib, "pango-1.0.lib" )
