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

libbson 1.4.0 can't be compiled with BSON_EXPERIMENTAL_FEATURES 0

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.4.0
    • libbson
    • None

    Description

      libbson/src/bson/bson-types.h only defines bson_decimal128_t if BSON_EXPERIMENTAL_FEATURES is defined, but libbson/src/bson/bson-decimal128.h and libbson/src/bson/bson-decimal128.c use bson_decimal128_t unconditionally.

      This causes compile errors:

      In file included from libbson/src/bson/bson-decimal128.c:23:
      libbson/src/bson/bson-decimal128.h:49:34: error: unknown type name 'bson_decimal128_t'
      bson_decimal128_to_string (const bson_decimal128_t *dec,
                                       ^
      libbson/src/bson/bson-decimal128.h:56:30: error: unknown type name 'bson_decimal128_t'
                                   bson_decimal128_t *dec);
                                   ^
      libbson/src/bson/bson-decimal128.c:124:34: error: unknown type name 'bson_decimal128_t'
      bson_decimal128_to_string (const bson_decimal128_t *dec,        /* IN  */
                                       ^
      libbson/src/bson/bson-decimal128.c:439:30: error: unknown type name 'bson_decimal128_t'
                                   bson_decimal128_t *dec) /* OUT */
                                   ^
      4 errors generated.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: