libmongocrypt
libmongocrypt copied to clipboard
Minor mlib tweaks and fixes
This changeset comes from tentative inclusion in mongo-c-driver for the csfle patch, which uncovered a few quirks and possible improvements:
-
mlib.cmaketo define an import the library and its tests as a one-liner in the parent project. -
mlib_inlineis a platform-specificinlinekeyword -
mlib_inline_defis a psuedo-keyword function attribute that mimics the link-once behavior of C++inline(usingweaklinkage on ELF/macOS, while COFF (Windows)inlinealways has this behavior). - MinGW is missing a flag definition for
WideCharToMultiByte(discovered in the MinGW target of the C driver's build).