diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-08 09:17:34 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-08 09:17:34 +0000 |
commit | e192e8fcc2a017a2d58fc947fafdaaa1acb513d5 (patch) | |
tree | 8e68d15b89ce3fad13ca803855f7d18a31305ecf /devel | |
parent | 785f2e6305d6e59c34a91b783dcd16782eeb4df2 (diff) | |
download | ports-e192e8fcc2a017a2d58fc947fafdaaa1acb513d5.tar.gz ports-e192e8fcc2a017a2d58fc947fafdaaa1acb513d5.zip |
[patch] fix port devel/spirit
FreeBSD implements the is* functions already correctly, but this is not
recognized with gcc 3.3.1. The proposed patch changes this behaviour.
Code in question (gcc 3.3.1 does not seem to define _STLPORT_VERSION,
whereas gcc 2.95.4 did):
#if defined(_MSC_VER) || _STLPORT_VERSION >= 0x450
// is* functions already setup
#else
#ifndef isalnum
inline bool isalnum(int c) { return std::isalnum(c); }
#endif
#ifndef isalpha
inline bool isalpha(int c) { return std::isalpha(c); }
#endif
PR: ports/55783
Submitted by: Simon Barner <barner@in.tum.de>
Notes
Notes:
svn path=/head/; revision=88771
Diffstat (limited to 'devel')
-rw-r--r-- | devel/spirit/files/patch-boost::spirit::impl::primitives.ipp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/spirit/files/patch-boost::spirit::impl::primitives.ipp b/devel/spirit/files/patch-boost::spirit::impl::primitives.ipp new file mode 100644 index 000000000000..37885b437b31 --- /dev/null +++ b/devel/spirit/files/patch-boost::spirit::impl::primitives.ipp @@ -0,0 +1,12 @@ +--- boost/spirit/impl/primitives.ipp.orig Thu Nov 15 12:57:25 2001 ++++ boost/spirit/impl/primitives.ipp Wed Aug 20 13:22:25 2003 +@@ -284,7 +284,8 @@ + // + // On some systems the is* functions are defined as macros + +-#if defined(_MSC_VER) || _STLPORT_VERSION >= 0x450 ++#if defined(_MSC_VER) || _STLPORT_VERSION >= 0x450 || \ ++ (defined(__GNUC__) && __GNUC__ >= 3) + // is* functions already setup + #else + #ifndef isalnum |