We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce219fb commit b4eb89bCopy full SHA for b4eb89b
src/lib/asiolink/botan_wrapper.h
@@ -21,8 +21,20 @@
21
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
22
#endif
23
24
+/// MariaDB defines PROTOCOL_VERSION which is also in a Botan enum...
25
+
26
+#ifdef PROTOCOL_VERSION
27
+#define BOTAN_BACKUP_FOR_PROTOCOL_VERSION PROTOCOL_VERSION
28
+#undef PROTOCOL_VERSION
29
+#endif
30
31
#include <botan/asio_error.h>
32
33
+#ifdef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
34
+#define PROTOCOL_VERSION BOTAN_BACKUP_FOR_PROTOCOL_VERSION
35
+#undef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
36
37
38
#if defined(__GNUC__) || defined(__clang__)
39
#pragma GCC diagnostic pop
40
0 commit comments