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

MingGW time functions are broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0, 3.2.1, 3.2.2, 3.2.3
    • Fix Version/s: 4.0.0
    • Component/s: Utilities
    • Labels:
      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

            • Assignee:
              rleigh Roger Leigh
              Reporter:
              rleigh Roger Leigh
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: