-
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.