ports/55783: [patch] fix port devel/spirit

Simon Barner barner at in.tum.de
Wed Aug 20 09:44:56 UTC 2003


>Number:         55783
>Category:       ports
>Synopsis:       [patch] fix port devel/spirit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 20 02:44:46 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Simon Barner
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu Aug 7 04:04:01 CEST 2003 toor at zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386

>Description:
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

>How-To-Repeat:
>Fix:
patch-boost::spirit::impl::primitives.ipp

--- boost/spirit/impl/primitives.ipp.orig       Wed Aug 20 02:03:52 2003
+++ boost/spirit/impl/primitives.ipp    Wed Aug 20 02:04:03 2003
@@ -284,7 +284,7 @@
 //
 //  On some systems the is* functions are defined as macros
 
-#if defined(_MSC_VER) || _STLPORT_VERSION >= 0x450 
+#if defined(_MSC_VER) || _STLPORT_VERSION >= 0x450 || __FreeBSD__
 // is* functions already setup
 #else
 #ifndef isalnum
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list