From: Mauritz Sundell Date: November 22 2012 11:22am Subject: bzr push into mysql-5.1-telco-7.1 branch (mauritz.sundell:4672 to 4673) List-Archive: http://lists.mysql.com/commits/145365 Message-Id: <20121122112255.2973.14144.4673@msundell-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 4673 Mauritz Sundell 2012-11-22 [merge] merge 7.0 -> 7.1 modified: include/my_attribute.h storage/ndb/include/ndbapi/Ndb.hpp 4672 Mauritz Sundell 2012-11-22 [merge] merge 7.0 -> 7.1 modified: storage/ndb/include/ndbapi/Ndb.hpp === modified file 'include/my_attribute.h' --- a/include/my_attribute.h 2009-05-26 18:53:34 +0000 +++ b/include/my_attribute.h 2012-11-22 11:15:48 +0000 @@ -24,6 +24,14 @@ #ifndef _my_attribute_h #define _my_attribute_h +#ifndef MCP_BACKPORT55 +#if defined(__GNUC__) +# ifndef GCC_VERSION +# define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__) +# endif +#endif +#endif + /* Disable __attribute__() on gcc < 2.7, g++ < 3.4, and non-gcc compilers. Some forms of __attribute__ are actually supported in earlier versions of === modified file 'storage/ndb/include/ndbapi/Ndb.hpp' --- a/storage/ndb/include/ndbapi/Ndb.hpp 2012-11-22 09:48:15 +0000 +++ b/storage/ndb/include/ndbapi/Ndb.hpp 2012-11-22 11:17:34 +0000 @@ -2064,11 +2064,6 @@ private: #endif #ifdef VM_TRACE -/** - * my_attribute.h need GCC_VERSION defined from my_global.h, - * otherwise it will redefine __attribute__ - */ -#include #include void printState(const char* fmt, ...) ATTRIBUTE_FORMAT(printf, 2, 3); No bundle (reason: useless for push emails).