diff options
author | obrien <obrien@FreeBSD.org> | 2004-11-19 03:22:05 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-11-19 03:22:05 +0000 |
commit | 7f068a1673bb427043db7ff1cc37551e16b2cba8 (patch) | |
tree | 0da143100da987726663e939b34e82977da165b3 /misc/bidwatcher/files | |
parent | aac8f2ac4bd5a6df7feff88d5dba79a8835b10bd (diff) | |
download | FreeBSD-ports-7f068a1673bb427043db7ff1cc37551e16b2cba8.zip FreeBSD-ports-7f068a1673bb427043db7ff1cc37551e16b2cba8.tar.gz |
Allow building on 4.x by working around the lack of strtof(3).
Submitted by: Greg Lewis <glewis@eyesbeyond.com>
Diffstat (limited to 'misc/bidwatcher/files')
-rw-r--r-- | misc/bidwatcher/files/patch-helpers.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/bidwatcher/files/patch-helpers.cpp b/misc/bidwatcher/files/patch-helpers.cpp new file mode 100644 index 0000000..598cb10 --- /dev/null +++ b/misc/bidwatcher/files/patch-helpers.cpp @@ -0,0 +1,16 @@ +$FreeBSD$ + +--- helpers.cpp.orig Sat Oct 30 15:02:55 2004 ++++ helpers.cpp Sat Oct 30 15:05:25 2004 +@@ -121,7 +121,11 @@ + bool strToFloat(const char *str, float &x) + { + char *end = 0; ++#if defined(__FreeBSD__) && __FreeBSD__ < 5 ++ x = (float) strtod(str, &end); ++#else + x = strtof(str, &end); ++#endif + return end != str && *end == 0; + } + |