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

MingGW time functions are broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0, 3.2.1, 3.2.2, 3.2.3
    • 4.0.0
    • Utilities
    • None

    Description

      C:/projects/xerces-c/src/xercesc/util/XMLDateTime.cpp:583:29: error: use of undeclared identifier 'timezone'
              return mktime(&t) - timezone;
      

      Newer versions of MinGW have added functions which were previously missing, like gmtime_r and localtime_r. It's possible the autodetection logic is incomplete and it's not using the correct ifdefs. For Xalan-C, I added additional feature detection and this solved the problem and will work with old or new MinGW versions.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rleigh Roger Leigh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: