libmongocrypt icon indicating copy to clipboard operation
libmongocrypt copied to clipboard

Minor mlib tweaks and fixes

Open vector-of-bool opened this issue 2 years ago • 0 comments

This changeset comes from tentative inclusion in mongo-c-driver for the csfle patch, which uncovered a few quirks and possible improvements:

  • mlib.cmake to define an import the library and its tests as a one-liner in the parent project.
  • mlib_inline is a platform-specific inline keyword
  • mlib_inline_def is a psuedo-keyword function attribute that mimics the link-once behavior of C++ inline (using weak linkage on ELF/macOS, while COFF (Windows) inline always has this behavior).
  • MinGW is missing a flag definition for WideCharToMultiByte (discovered in the MinGW target of the C driver's build).

vector-of-bool avatar Apr 18 '22 23:04 vector-of-bool