From ffc213a192f4e5a2acf5c80d2413157de65976fe Mon Sep 17 00:00:00 2001 From: "kent@mysql.com" <> Date: Tue, 13 Sep 2005 10:15:48 +0200 Subject: [PATCH] sql_prepare.cc: VC6 can't handle initializing const in declaration --- sql/sql_prepare.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 879ea626494..624eccd2d67 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -118,9 +118,18 @@ public: bool deallocate(); /* Possible values of flags */ +#if defined(_MSC_VER) && _MSC_VER < 1300 + static const int IS_IN_USE; +#else static const int IS_IN_USE= 1; +#endif }; +/* VC6 can't handle initializing in declaration */ +#if defined(_MSC_VER) && _MSC_VER < 1300 +const int Prepared_statement::IS_IN_USE= 1; +#endif + /****************************************************************************** Implementation ******************************************************************************/