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

Exclude min & max macros on Windows in libbson

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: 1.3.0-rc0
    • Component/s: libbson
    • None
    • Minor Change

      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

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

              Created:
              Updated:
              Resolved: