Undefine BSON_IF_MSVC if legacy atomics enabled

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.29.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • C Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Quoting slack:

      While vendoring bson-atomic.h into PHPC, I noticed that BSON_IF_MSVC is sometimes redefined, and unlike other defs in that header it's not undefined later. It looks like this could possibly conflict with another definition of the macro in bson-compat.h

      The redefinition of BSON_IF_MSVC was introduced in: https://github.com/mongodb/mongo-c-driver/pull/1096

              Assignee:
              Kevin Albertson
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: