Skip to content

Fix #if directives in Producer. #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions confluent_kafka/src/Producer.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Producer_producev (Handle *self,
const void *value, size_t value_len,
const void *key, size_t key_len,
void *opaque, int64_t timestamp
#if RD_KAFKA_V_HEADERS
#ifdef RD_KAFKA_V_HEADERS
,rd_kafka_headers_t *headers
#endif
) {
Expand All @@ -272,7 +272,7 @@ Producer_producev (Handle *self,
RD_KAFKA_V_VALUE((void *)value,
(size_t)value_len),
RD_KAFKA_V_TIMESTAMP(timestamp),
#if RD_KAFKA_V_HEADERS
#ifdef RD_KAFKA_V_HEADERS
RD_KAFKA_V_HEADERS(headers),
#endif
RD_KAFKA_V_OPAQUE(opaque),
Expand Down Expand Up @@ -386,7 +386,7 @@ static PyObject *Producer_produce (Handle *self, PyObject *args,
value, value_len,
key, key_len,
msgstate, timestamp
#if RD_KAFKA_V_HEADERS
#ifdef RD_KAFKA_V_HEADERS
,rd_headers
#endif
);
Expand Down