$EXPORT PLUGIN_EXPORT
$INCLUDE <dso/DSOVisibility.hh>     # where PLUGIN_EXPORT is defined

The last $EXPORT in the file is the one used.

Semantics: Reference › $EXPORT.