From: Tor Didriksen Date: September 20 2011 8:15am Subject: bzr push into mysql-trunk branch (tor.didriksen:3441 to 3442) List-Archive: http://lists.mysql.com/commits/141004 Message-Id: <201109200815.p8K8FYao009791@acsmt357.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 3442 Tor Didriksen 2011-09-20 Remove the ifdef STANDARD stuff (the flag was removed from configure on Fri 2006-03-10 12:12:08 +0100) Include stl headers *after* my_global, trying to fix broken build on solaris: the build broke on SunOS takk 5.10 Generic_120011-14 sun4u sparc SUNW,SPARC-Enterprise "/usr/include/floatingpoint.h", line 164: Error: FILE is not defined. in /usr/include/floatingpoint.h we find this spaghetti: #ifdef __STDC__ #include #if __cplusplus >= 199711L namespace std { #endif #if !defined(_FILEDEFED) || __cplusplus >= 199711L #define _FILEDEFED typedef __FILE FILE; #endif #if __cplusplus >= 199711L } // namespace std #define _FLOATINGPOINT_FILE std::FILE #else #define _FLOATINGPOINT_FILE FILE #endif #endif /* defined(__STDC__) */ modified: sql/udf_example.cc 3441 Tor Didriksen 2011-09-19 enable exceptions (got linkage error on win32 when using stl code in mysqld.cc) modified: cmake/os/Windows.cmake === modified file 'sql/udf_example.cc' --- a/sql/udf_example.cc 2011-09-19 14:27:04 +0000 +++ b/sql/udf_example.cc 2011-09-20 08:07:57 +0000 @@ -111,25 +111,13 @@ ** */ +#include +#include + #include #include #include -#ifdef STANDARD -/* STANDARD is defined, don't use any mysql functions */ -#include -#include -#include -#ifdef __WIN__ -typedef unsigned __int64 ulonglong; /* Microsofts 64 bit types */ -typedef __int64 longlong; -#else -typedef unsigned long long ulonglong; -typedef long long longlong; -#endif /*__WIN__*/ -#else -#include -#include #if defined(MYSQL_SERVER) #include /* To get strmov() */ #else @@ -137,7 +125,7 @@ typedef long long longlong; #include #define strmov(a,b) stpcpy(a,b) #endif -#endif + #include #include No bundle (reason: useless for push emails).