Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 02:11:55 +0200 (CEST)
From:      Simon Barner <barner@in.tum.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/55783: [patch] fix port devel/spirit
Message-ID:  <20030820001155.0E04738EB0@zi025.glhnet.mhn.de>
Resent-Message-ID: <200308200944.h7K9il17090977@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030820001155.0E04738EB0>