X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Ftransmitter.h;h=d77fca8da32a4c67f38fdf4420cb127b6a824a21;hb=e057b873b52708326fb654d9bcbbf84b932c4b02;hp=357cb9965fcffc6be67d7ea5f3ef1977c12c17d5;hpb=481f7c39655afec832ac10430dd61a3bb464aa58;p=ardour.git diff --git a/libs/pbd/pbd/transmitter.h b/libs/pbd/pbd/transmitter.h index 357cb9965f..d77fca8da3 100644 --- a/libs/pbd/pbd/transmitter.h +++ b/libs/pbd/pbd/transmitter.h @@ -15,7 +15,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ #ifndef __libmisc_transmitter_h__ @@ -26,11 +25,9 @@ #include -using std::cout; -using std::cerr; -using std::endl; +#include "pbd/libpbd_visibility.h" -class Transmitter : public std::stringstream +class LIBPBD_API Transmitter : public std::stringstream { public: @@ -83,11 +80,11 @@ endmsg (std::ostream &ostr) see if ostr == cout, and handle it specially. */ - if (&ostr == &cout) { - cout << endl; + if (&ostr == &std::cout) { + std::cout << std::endl; return ostr; - } else if (&ostr == &cerr) { - cerr << endl; + } else if (&ostr == &std::cerr) { + std::cerr << std::endl; return ostr; } @@ -98,13 +95,13 @@ endmsg (std::ostream &ostr) it and assume that that will be enough. */ - ostr << endl; + ostr << std::endl; } return ostr; } -extern "C" { void pbd_c_error (const char *); } +extern "C" { LIBPBD_API void pbd_c_error (const char *); } #endif // __libmisc_transmitter_h__