Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-623

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 1.7.0
    • None
    • Samples/Tests
    • None
    • Operating System: Linux
      Platform: PC
    • 12785

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            joverly@cfa.harvard.edu James Overly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: