]> granicus.if.org Git - graphviz/commitdiff
Use _strdup instead of strdup on Windows
authorEmden Gansner <erg@research.att.com>
Mon, 26 Nov 2012 18:29:18 +0000 (13:29 -0500)
committerEmden Gansner <erg@research.att.com>
Mon, 26 Nov 2012 18:29:18 +0000 (13:29 -0500)
cmd/tools/gv2gml.c

index 2ada23f4427f4434ffe73dd22434552ccbe54704..7f3e882aa62910ec4758435893442e86b793acba 100644 (file)
     #pragma comment( lib, "cgraph.lib" )
     #pragma comment( lib, "ingraphs.lib" )
     #pragma comment( lib, "cdt.lib" )
-
 #endif
 
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -134,7 +132,11 @@ parseStyle (char* s)
     char* ip;
     char* sep = " \t,";
 
-    s = strdup(s);
+#ifdef WIN32 
+       s = _strdup(s);
+#else
+       s = strdup(s);
+#endif
     for (ip = strtok (s, sep); ip; ip = strtok (NULL, sep)) {
        if (streq(ip,"invis")) flags |= INVIS;
        else if (streq(ip,"filled")) flags |= FILL;