openzim / libzim

Reference implementation of the ZIM specification
https://download.openzim.org/release/libzim/
GNU General Public License v2.0
169 stars 50 forks source link

Correctly export public api #780

Closed mgautierfr closed 1 year ago

mgautierfr commented 1 year ago

On windows (msvc?), functions are by default hidden (in contrast to gcc).

We must correctly export our public API.

Either with __declspec(dllexport) in function/method declaration (to do with a macro for portability) Or with a .def file.

See #741 and https://github.com/mesonbuild/meson/issues/7838