diff options
author | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-06-29 16:09:34 +0000 |
---|---|---|
committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-06-29 16:09:34 +0000 |
commit | 81566fc2bcf388a2d1a68f249da9a5074dd1290d (patch) | |
tree | 2da859385812e085f3b50e1b49fdd21d8321e95b /astro/xplanet | |
parent | Update DAT to 4524 (diff) |
Add a hack to emulate signbit() on 4.x. I hope this will fix build on 4.x and
work in a proper way.
Reported by: pointyhat via kris
Notes
Notes:
svn path=/head/; revision=138199
Diffstat (limited to 'astro/xplanet')
-rw-r--r-- | astro/xplanet/files/patch-src-libprojection-ProjectionIcosagnomonic.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/astro/xplanet/files/patch-src-libprojection-ProjectionIcosagnomonic.cpp b/astro/xplanet/files/patch-src-libprojection-ProjectionIcosagnomonic.cpp new file mode 100644 index 000000000000..d4dcb61d798c --- /dev/null +++ b/astro/xplanet/files/patch-src-libprojection-ProjectionIcosagnomonic.cpp @@ -0,0 +1,22 @@ +--- src/libprojection/ProjectionIcosagnomonic.cpp.orig Tue Jun 14 22:10:36 2005 ++++ src/libprojection/ProjectionIcosagnomonic.cpp Wed Jun 29 20:11:58 2005 +@@ -26,6 +26,19 @@ + #define THIGH 3 + #define RATIO (((THIGH)*sqrt(3.0)/2)/(TWIDE)) + ++/* signbit() appaired only in FreeBSD 5.1, so we need this hack */ ++#ifndef signbit ++static int ++signbit(double x) ++{ ++ ++ if ((x < 0.0) || (x = -0.0)) ++ return 1; ++ else ++ return 0; ++} ++#endif /* signbit */ ++ + bool + ProjectionIcosagnomonic::PointXY::sameSide(const PointXY& p1, + const PointXY& p2, |