Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
1.4.0
-
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.
|