pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/starplot starplot: avoid ambiguous math functions



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a6613ae4b24
branches:  trunk
changeset: 377940:7a6613ae4b24
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Apr 25 14:40:13 2022 +0000

description:
starplot: avoid ambiguous math functions

diffstat:

 misc/starplot/distinfo                          |   3 ++-
 misc/starplot/patches/patch-src_gui_starplot.cc |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 9819af236567 -r 7a6613ae4b24 misc/starplot/distinfo
--- a/misc/starplot/distinfo    Mon Apr 25 14:36:19 2022 +0000
+++ b/misc/starplot/distinfo    Mon Apr 25 14:40:13 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:59:33 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/04/25 14:40:13 tnn Exp $
 
 BLAKE2s (starplot-0.95.5.tar.gz) = 3acc5714e0e2c6228eecf38d7ee43f40c82a83834502543def18106439623230
 SHA512 (starplot-0.95.5.tar.gz) = cfc451b9ec8593054b76ef29170408b486e932ef467f3c2f847b40275c8a52e539142d09c76f0057c01ef87bf0628102f99151827030995a5f8bcb9541f24a11
 Size (starplot-0.95.5.tar.gz) = 892878 bytes
+SHA1 (patch-src_gui_starplot.cc) = c7401154a638563548ff334954a9478f33b80e58
diff -r 9819af236567 -r 7a6613ae4b24 misc/starplot/patches/patch-src_gui_starplot.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/starplot/patches/patch-src_gui_starplot.cc   Mon Apr 25 14:40:13 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_gui_starplot.cc,v 1.1 2022/04/25 14:40:13 tnn Exp $
+
+avoid ambiguous math functions
+
+--- src/gui/starplot.cc.orig   2008-04-10 19:18:48.000000000 +0000
++++ src/gui/starplot.cc
+@@ -28,6 +28,8 @@
+ #include "starplot.h"
+ #include "starplot.xpm"
+ 
++using std::pow;
++
+ #define FLIP(boolean) ((boolean) = !(boolean))
+ 
+ // initialize globals



Home | Main Index | Thread Index | Old Index