]> granicus.if.org Git - graphviz/commitdiff
Carefully reapplied r1.75 without clobbering changes
authorglenlow <devnull@localhost>
Tue, 26 May 2009 04:38:59 +0000 (04:38 +0000)
committerglenlow <devnull@localhost>
Tue, 26 May 2009 04:38:59 +0000 (04:38 +0000)
lib/neatogen/neatoinit.c

index 90f8a65b70089afde0d16fe06213d5d1d5bdb283..1a6ab25562c2d69ddca271db51ddbc0f09c00dfd 100644 (file)
@@ -1117,7 +1117,7 @@ setSeed (graph_t * G, int dflt, long* seedp)
        long seed;
        /* Check for seed value */
        if (!isdigit(*(unsigned char *)p) || sscanf(p, "%ld", &seed) < 1) {
-#ifdef MSWIN32
+#if defined(MSWIN32) || defined(WIN32)
            seed = (unsigned) time(NULL);
 #else
            seed = (unsigned) getpid() ^ (unsigned) time(NULL);