bson_oid_to_string does not use fast-path code with Visual Studio

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.4.0
    • Affects Version/s: 1.3.2
    • Component/s: libbson
    • None
    • Environment:
      Visual Studio 12 2013 Win64
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Commit (8d7a2b7cdd429d6d5a7853848a804b29ab619b1a) added a #define guard for the fast-path code for bson_oid_to_string that ensured it was only enabled on x86 platforms.

      When I build on Windows, this fast-path code is not enabled (see the first line of bson_oid_to_string):

      #if !defined(__i386__) && !defined(__x86_64__)

      Neither of these macros is defined by Visual Studio.

            Assignee:
            Hannes Magnusson (Inactive)
            Reporter:
            Maverick Chan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: