Exclude min & max macros on Windows in libbson

XMLWordPrintableJSON

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

      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
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: