Fix windows linker errors (#120)

This commit is contained in:
multiprogramm
2018-10-17 20:43:33 +03:00
committed by Matias Fontanini
parent fbe3759fed
commit 2b66fd3a22
4 changed files with 8 additions and 4 deletions

View File

@@ -31,6 +31,7 @@
#define CPPKAFKA_MESSAGE_INTERNAL_H
#include <memory>
#include "macros.h"
namespace cppkafka {
@@ -45,7 +46,7 @@ using InternalPtr = std::shared_ptr<Internal>;
/**
* \brief Private message data structure
*/
class MessageInternal {
class CPPKAFKA_API MessageInternal {
public:
MessageInternal(void* user_data, std::shared_ptr<Internal> internal);
static std::unique_ptr<MessageInternal> load(Message& message);

View File

@@ -37,6 +37,7 @@
#include "../consumer.h"
#include "backoff_performer.h"
#include "../detail/callback_invoker.h"
#include "../macros.h"
namespace cppkafka {
@@ -71,7 +72,7 @@ namespace cppkafka {
* committer.commit(some_message);
* \endcode
*/
class BackoffCommitter : public BackoffPerformer {
class CPPKAFKA_API BackoffCommitter : public BackoffPerformer {
public:
/**
* \brief The error callback.

View File

@@ -37,6 +37,7 @@
#include <boost/optional.hpp>
#include "../buffer.h"
#include "../consumer.h"
#include "../macros.h"
namespace cppkafka {
/**
@@ -110,7 +111,7 @@ private:
};
template <typename Key, typename Value>
class CompactedTopicProcessor {
class CPPKAFKA_API CompactedTopicProcessor {
public:
/**
* The type of events generated by this processor

View File

@@ -35,6 +35,7 @@
#include "../queue.h"
#include "../topic_partition_list.h"
#include "poll_interface.h"
#include "../macros.h"
namespace cppkafka {
@@ -52,7 +53,7 @@ struct QueueData {
*
* \brief Base implementation of the PollInterface
*/
class PollStrategyBase : public PollInterface {
class CPPKAFKA_API PollStrategyBase : public PollInterface {
public:
using QueueMap = std::map<TopicPartition, QueueData>;