Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1036

Exclude min & max macros on Windows in libbson

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.3.0
    • 1.3.0-rc0
    • libbson
    • None
    • Minor Change

    Description

      min() and max() macros are defined in the WIndows headers which conflict with std::min() and std::max(). bson-compat.h is including winsock.h which includes windows.h.

      See https://support.microsoft.com/en-us/kb/143208

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: