diff --git a/include/cppkafka/buffer.h b/include/cppkafka/buffer.h index 9237cf7..43e71a7 100644 --- a/include/cppkafka/buffer.h +++ b/include/cppkafka/buffer.h @@ -152,7 +152,7 @@ public: /** * Output operator */ - friend std::ostream& operator<<(std::ostream& output, const Buffer& rhs); + CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const Buffer& rhs); private: const DataType* data_; size_t size_; @@ -161,12 +161,12 @@ private: /** * Compares Buffer objects for equality */ -bool operator==(const Buffer& lhs, const Buffer& rhs); +CPPKAFKA_API bool operator==(const Buffer& lhs, const Buffer& rhs); /** * Compares Buffer objects for inequality */ -bool operator!=(const Buffer& lhs, const Buffer& rhs); +CPPKAFKA_API bool operator!=(const Buffer& lhs, const Buffer& rhs); } // cppkafka diff --git a/include/cppkafka/error.h b/include/cppkafka/error.h index 626bd46..91ceb19 100644 --- a/include/cppkafka/error.h +++ b/include/cppkafka/error.h @@ -75,7 +75,7 @@ public: /** * Writes this error's string representation into a stream */ - friend std::ostream& operator<<(std::ostream& output, const Error& rhs); + CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const Error& rhs); private: rd_kafka_resp_err_t error_; }; diff --git a/include/cppkafka/topic_partition.h b/include/cppkafka/topic_partition.h index f9c41fd..97ddc91 100644 --- a/include/cppkafka/topic_partition.h +++ b/include/cppkafka/topic_partition.h @@ -130,7 +130,7 @@ public: /** * Print to a stream */ - friend std::ostream& operator<<(std::ostream& output, const TopicPartition& rhs); + CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const TopicPartition& rhs); private: std::string topic_; int partition_;