From 520ec8698dfb1b1d6802cd5f43a0d4209a02687d Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 10 Aug 2016 14:13:01 -0700 Subject: [PATCH] Guard against sysmacros.h pulling in defines for `major` and `minor` on some platforms. (flutter/engine#2900) --- engine/src/flutter/flow/gl_connection.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/src/flutter/flow/gl_connection.h b/engine/src/flutter/flow/gl_connection.h index 76ec31ee48..16b68f6bbf 100644 --- a/engine/src/flutter/flow/gl_connection.h +++ b/engine/src/flutter/flow/gl_connection.h @@ -11,6 +11,14 @@ #include #include +#ifdef major +#undef major +#endif + +#ifdef minor +#undef minor +#endif + namespace flow { class GLConnection {