diff options
author | wiz <wiz> | 2004-09-08 16:10:08 +0000 |
---|---|---|
committer | wiz <wiz> | 2004-09-08 16:10:08 +0000 |
commit | 425020532f02f0dd9da4dc72b814d30cc55ed89b (patch) | |
tree | b8eef168d8e6d0a635d95580961e587048cc91f4 /geography/vis5d+/patches/patch-aa | |
parent | f0c9a59ab49f657e319ee0f4677190c36bcb5f62 (diff) | |
download | pkgsrc-425020532f02f0dd9da4dc72b814d30cc55ed89b.tar.gz |
Rename round() to roundnice() to avoid conflict with math.h round().
Should fix bulk build.
Diffstat (limited to 'geography/vis5d+/patches/patch-aa')
-rw-r--r-- | geography/vis5d+/patches/patch-aa | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/geography/vis5d+/patches/patch-aa b/geography/vis5d+/patches/patch-aa new file mode 100644 index 00000000000..4925f32df36 --- /dev/null +++ b/geography/vis5d+/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1 2004/09/08 16:10:08 wiz Exp $ + +--- src/misc.c.orig 2001-11-07 12:53:12.000000000 +0100 ++++ src/misc.c +@@ -147,7 +147,7 @@ int installed( char *program ) + /*** round ************************************************************ + Round off x to a 'nice' value. + **********************************************************************/ +-float round( float x ) ++float roundnice( float x ) + { + float base, fudge; + int temp; +@@ -273,7 +273,7 @@ void init_graphics_pos( Context ctx, int + ctx->Variable[var]->HSliceRequest->Interval = 0.0; + } + else { +- ctx->Variable[var]->HSliceRequest->Interval = round( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) ++ ctx->Variable[var]->HSliceRequest->Interval = roundnice( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) + / 10.0 ); + } + +@@ -309,7 +309,7 @@ void init_graphics_pos( Context ctx, int + ctx->Variable[var]->VSliceRequest->Interval = 0.0; + } + else { +- ctx->Variable[var]->VSliceRequest->Interval = round( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) ++ ctx->Variable[var]->VSliceRequest->Interval = roundnice( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) + / 10.0 ); + } + |