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

Undefine BSON_IF_MSVC if legacy atomics enabled

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

      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@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: