Modern C++ Kafka API
Project.h
1 #pragma once
2 
3 // Customize the namespace (default is `kafka`) if necessary
4 #ifndef KAFKA_API
5 #define KAFKA_API kafka
6 #endif
7 
8 // Here is the MACRO to enable internal stubs for UT
9 // #ifndef KAFKA_API_ENABLE_UNIT_TEST_STUBS
10 // #define KAFKA_API_ENABLE_UNIT_TEST_STUBS
11 // #endif
12 
13 
14 #if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
15 #define COMPILER_SUPPORTS_CPP_17 1 // NOLINT
16 #else
17 #define COMPILER_SUPPORTS_CPP_17 0 // NOLINT
18 #endif
19