]> wimlib.net Git - wimlib/commit
Fix clang warnings about inconsistent use of dllexport
authorEric Biggers <ebiggers3@gmail.com>
Mon, 27 Mar 2023 05:30:54 +0000 (22:30 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 27 Mar 2023 05:30:54 +0000 (22:30 -0700)
commitc160f56245b0b7da9f0c838bba27c0caa716faa2
treea8805355378853c6f79c77aced47600e7b7654c0
parenta572c002311c80164758340b9e6edb8fbfc47eca
Fix clang warnings about inconsistent use of dllexport

In MSYS2, clang emits many warnings like the following:

    warning: redeclaration of 'wimlib_add_empty_image' should not add 'dllexport' attribute

The problem is that dllexport is used when defining the wimlib API
functions but not when declaring them.  Fix this by using dllexport in
both places.
Makefile.am
include/wimlib.h
include/wimlib/compiler.h
include/wimlib/test_support.h