DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12785>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12785

SchemaSymbols.hpp redefines INFINITY used by sys/vlimit.h in gcc 3.2-

           Summary: SchemaSymbols.hpp redefines INFINITY used by
                    sys/vlimit.h in gcc 3.2-
           Product: Xerces-C++
           Version: 1.7.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Samples/Tests
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi -

GCC 3.2 defines INFINTITY in sys/vlimit.h:

/usr/include/sys/vlimit.h:#define INFINITY 0x7fffffff

This conficts with SchemaSymbols.hpp which attempts to
redefine INFINITY. I only see it used in the following
places. Could this be change to something like 
XERCESC_INFIINITY to avoid the conflict?

./samples/SEnumVal/SEnumVal.cpp
                if( mflags == SchemaSymbols::INFINITY  )

./src/xercesc/validators/schema/SchemaSymbols.hpp
        INFINITY = -2,

./include/xercesc/validators/schema/SchemaSymbols.hpp
        INFINITY = -2,

Since we are not using the code that needs INFINITY defined
I was just going to remove it as a work around.

Jim Overly

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to