libbson 1.4.0 can't be compiled with BSON_EXPERIMENTAL_FEATURES 0

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: libbson
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.
      

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: