github.com/confluentinc/confluent-kafka-go@v1.9.2/kafka/select_rdkafka.h (about)

     1  /**
     2   * Copyright 2020 Confluent Inc.
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   * http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  // This file uses a preprocessor macro defined by the various build_*.go
    18  // files to determine whether to import the bundled librdkafka header, or
    19  // the system one.
    20  // This is needed because cgo will automatically add -I. to the include
    21  // path, so <librdkafka/rdkafka.h> would find a bundled header instead of
    22  // the system one if it were called librdkafka/rdkafka.h instead of
    23  // librdkafka_vendor/rdkafka.h
    24  
    25  #ifdef USE_VENDORED_LIBRDKAFKA
    26  #include "librdkafka_vendor/rdkafka.h"
    27  #include "librdkafka_vendor/rdkafka_mock.h"
    28  #else
    29  #include <librdkafka/rdkafka.h>
    30  #include <librdkafka/rdkafka_mock.h>
    31  #endif