This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++ failing if index is a macro


Hello!

SuSv3 declares index() as LEGACY and proposes the use of
#define index(s,c) strchr((s), (c)) in header

Doing this makes the build of libstdc++ failing, because index is used 
internally. The attached patch solves this by undefining a possible macro, 
maybe it would be better though to rename index to something else within 
libstdc++ sources.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

Attachment: gcc-4.1.0-index_macro.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]