Skip to content

Commit

Permalink
[#3726] Protected PROTOCOL_VERSION in Botan wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fxdupont committed Jan 31, 2025
1 parent ce219fb commit b4eb89b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib/asiolink/botan_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,20 @@
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif

/// MariaDB defines PROTOCOL_VERSION which is also in a Botan enum...

#ifdef PROTOCOL_VERSION
#define BOTAN_BACKUP_FOR_PROTOCOL_VERSION PROTOCOL_VERSION
#undef PROTOCOL_VERSION
#endif

#include <botan/asio_error.h>

#ifdef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
#define PROTOCOL_VERSION BOTAN_BACKUP_FOR_PROTOCOL_VERSION
#undef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
#endif

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif
Expand Down

0 comments on commit b4eb89b

Please sign in to comment.