From 032a30f676cc86ab6e551b12e1c08ed6d0f178e2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 20 May 2020 23:17:15 -0700 Subject: [PATCH] Fix mac build, part 2. --- extensions/mysql/mysql/MyDriver.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extensions/mysql/mysql/MyDriver.h b/extensions/mysql/mysql/MyDriver.h index 3d2d93511..0109f431f 100644 --- a/extensions/mysql/mysql/MyDriver.h +++ b/extensions/mysql/mysql/MyDriver.h @@ -43,6 +43,14 @@ #include #include +// On macOS, the MySQL includes define min/max. +#if defined(min) +# undef min +#endif +#if defined(max) +# undef max +#endif + #include #include