summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/house_arrest.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-11-25 15:31:30 +0100
committerGravatar Nikias Bassen2026-11-25 15:31:30 +0100
commita7c6a134fec64be56bf689032d0487f728e22d84 (patch)
treeb85edbc1cfcbd34a7102ca116c98dea396608ae2 /include/libimobiledevice/house_arrest.h
parent60bf03b4cac8ed5f52f803cdb031a404c0da3beb (diff)
downloadlibimobiledevice-a7c6a134fec64be56bf689032d0487f728e22d84.tar.gz
libimobiledevice-a7c6a134fec64be56bf689032d0487f728e22d84.tar.bz2
Windows: Don't use dllimport; only apply dllexport to DLL objectsHEADmaster
Public headers declared the API macro as __declspec(dllimport) on Windows unless *_STATIC was defined. That made consumers reference __imp_<symbol>, which only exists in the DLL import library, so linking against the static library failed unless the consumer also defined *_STATIC. All exported symbols are functions, so dllimport is not needed: calls to plain symbols link against both the static library and the import library (via its thunks). Drop it from the public headers. On the library side, apply __declspec(dllexport) only when libtool defines DLL_EXPORT, i.e. when compiling the objects for the DLL. This keeps export directives out of the objects that go into the static library when both are built.
Diffstat (limited to 'include/libimobiledevice/house_arrest.h')
0 files changed, 0 insertions, 0 deletions