Include share.h from dicom-io.c on Windows to fix missing definition for _SH_DENYWR.
Don't dllexport/dllimport when building libdicom as a static library. In this case, we don't want callers to try to mangle our symbols to reference them from a DLL import library, and we don't want to include our symbols in the exports of a larger DLL that we might be linked into.
Include
share.h
fromdicom-io.c
on Windows to fix missing definition for_SH_DENYWR
.Don't
dllexport
/dllimport
when building libdicom as a static library. In this case, we don't want callers to try to mangle our symbols to reference them from a DLL import library, and we don't want to include our symbols in the exports of a larger DLL that we might be linked into.