From: glenlow Date: Mon, 25 May 2009 08:18:50 +0000 (+0000) Subject: Support building with Visual Studio 2005+ X-Git-Tag: LAST_LIBGRAPH~32^2~2026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3ca2730379b8e90ae58a533809324f4e6d352db;p=graphviz Support building with Visual Studio 2005+ --- diff --git a/lib/fdpgen/tlayout.c b/lib/fdpgen/tlayout.c index 4169989f2..56f84d902 100644 --- a/lib/fdpgen/tlayout.c +++ b/lib/fdpgen/tlayout.c @@ -552,7 +552,7 @@ static pointf initPositions(graph_t * g, bport_t * pp) if (T_smode == INIT_RANDOM) local_seed = T_seed; else { -#ifdef MSWIN32 +#if defined(MSWIN32) || defined(WIN32) local_seed = time(NULL); #else local_seed = getpid() ^ time(NULL); diff --git a/lib/graph/graph.h b/lib/graph/graph.h index b05668754..eafdec4c0 100644 --- a/lib/graph/graph.h +++ b/lib/graph/graph.h @@ -214,7 +214,7 @@ extern "C" { extern void agseterr(agerrlevel_t); extern char *aglasterr(void); extern int agerr(agerrlevel_t level, char *fmt, ...); - extern void agerrorf(char *fmt, ...); + extern void agerrorf(const char *fmt, ...); extern void agwarningf(char *fmt, ...); extern char *agstrdup(char *); diff --git a/lib/graph/libgraph.h b/lib/graph/libgraph.h index 77d810aa1..cdf4c3064 100644 --- a/lib/graph/libgraph.h +++ b/lib/graph/libgraph.h @@ -28,7 +28,7 @@ extern "C" { #include #include #include -#ifndef MSWIN32 +#if !defined(MSWIN32) && !defined(WIN32) #include #endif #endif