From b9cb8c9db9880689f485d2efbfe38b070aa4ae1c Mon Sep 17 00:00:00 2001 From: "antony@ppcg5.local" <> Date: Sun, 29 Apr 2007 08:46:34 -0700 Subject: [PATCH] fix windows build failure VC++ does not like compile_time_assert() macro --- sql/sql_lex.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index bd81aa2d5c1..4cb25aca77c 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1772,8 +1772,10 @@ st_lex::st_lex() :result(0), yacc_yyss(0), yacc_yyvs(0), sql_command(SQLCOM_END) { +#ifndef __WIN__ /* Check that plugins_static_buffer is declared immediately after plugins */ compile_time_assert((&plugins + 1) == (DYNAMIC_ARRAY*)plugins_static_buffer); +#endif my_init_dynamic_array2(&plugins, sizeof(plugin_ref), plugins_static_buffer,