ext/libmongocrypt/libmongocrypt/src/mc-optional-private.h in libmongocrypt-helper-1.8.0.0.1001 vs ext/libmongocrypt/libmongocrypt/src/mc-optional-private.h in libmongocrypt-helper-1.11.0.0.1001
- old
+ new
@@ -23,9 +23,20 @@
#include "./mc-dec128.h"
#include "./mlib/int128.h"
typedef struct {
bool set;
+ bool value;
+} mc_optional_bool_t;
+
+#define OPT_BOOL(val) \
+ (mc_optional_bool_t) { .set = true, .value = val }
+
+#define OPT_BOOL_C(val) \
+ { .set = true, .value = val }
+
+typedef struct {
+ bool set;
int32_t value;
} mc_optional_int32_t;
#define OPT_I32(val) \
(mc_optional_int32_t) { .set = true, .value = val }