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

Exclude min & max macros on Windows in libbson

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-rc0
    • Fix Version/s: 1.3.0
    • Component/s: libbson
    • Labels:
      None
    • Sprint:
      Platform D (12/11/15)

      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: