Loading configure.in +1 −1 Original line number Diff line number Diff line Loading @@ -2273,7 +2273,7 @@ AC_ARG_WITH([mysqlmanager], [if test "x${withval}" != "xno"; then tools_dirs="$tools_dirs server-tools" fi], [if test "x${with_server}" == "xyes"; then [if test "x${with_server}" = "xyes"; then tools_dirs="$tools_dirs server-tools" fi] ) Loading extra/yassl/include/lock.hpp +3 −3 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ namespace yaSSL { #ifdef MULTI_THREADED #ifdef WIN32 #ifdef _WIN32 #include <windows.h> class Mutex { Loading @@ -50,7 +50,7 @@ namespace yaSSL { ~Lock(); }; }; #else // WIN32 #else // _WIN32 #include <pthread.h> class Mutex { Loading @@ -71,7 +71,7 @@ namespace yaSSL { }; }; #endif // WIN32 #endif // _WIN32 #else // MULTI_THREADED (WE'RE SINGLE) class Mutex { Loading extra/yassl/include/socket_wrapper.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ #include <assert.h> #ifdef WIN32 #ifdef _WIN32 #include <winsock2.h> #else #include <sys/time.h> Loading @@ -47,7 +47,7 @@ namespace yaSSL { typedef unsigned int uint; #ifdef WIN32 #ifdef _WIN32 typedef SOCKET socket_t; #else typedef int socket_t; Loading extra/yassl/mySTL/helpers.hpp +15 −8 Original line number Diff line number Diff line Loading @@ -31,32 +31,39 @@ #include <new> // placement new #ifdef __IBMCPP__ /* Workaround for the lack of operator new(size_t, void*) in IBM VA C++ 6.0 */ struct Dummy {}; inline void *operator new(size_t size, Dummy *d) { return (void*) d; } inline void* operator new(size_t size, Dummy* d) { return static_cast<void*>(d); } typedef Dummy* yassl_pointer; #else typedef void* yassl_pointer; #endif namespace mySTL { template <typename T, typename T2> inline void construct(T* p, const T2& value) { new ((yassl_pointer) p) T(value); new (reinterpret_cast<yassl_pointer>(p)) T(value); } template <typename T> inline void construct(T* p) { new (static_cast<void*>(p)) T(); new (reinterpret_cast<yassl_pointer>(p)) T(); } Loading extra/yassl/src/lock.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ namespace yaSSL { #ifdef MULTI_THREADED #ifdef WIN32 #ifdef _WIN32 Mutex::Mutex() { Loading @@ -54,7 +54,7 @@ namespace yaSSL { LeaveCriticalSection(&mutex_.cs_); } #else // WIN32 #else // _WIN32 Mutex::Mutex() { Loading @@ -80,7 +80,7 @@ namespace yaSSL { } #endif // WIN32 #endif // _WIN32 #endif // MULTI_THREADED Loading Loading
configure.in +1 −1 Original line number Diff line number Diff line Loading @@ -2273,7 +2273,7 @@ AC_ARG_WITH([mysqlmanager], [if test "x${withval}" != "xno"; then tools_dirs="$tools_dirs server-tools" fi], [if test "x${with_server}" == "xyes"; then [if test "x${with_server}" = "xyes"; then tools_dirs="$tools_dirs server-tools" fi] ) Loading
extra/yassl/include/lock.hpp +3 −3 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ namespace yaSSL { #ifdef MULTI_THREADED #ifdef WIN32 #ifdef _WIN32 #include <windows.h> class Mutex { Loading @@ -50,7 +50,7 @@ namespace yaSSL { ~Lock(); }; }; #else // WIN32 #else // _WIN32 #include <pthread.h> class Mutex { Loading @@ -71,7 +71,7 @@ namespace yaSSL { }; }; #endif // WIN32 #endif // _WIN32 #else // MULTI_THREADED (WE'RE SINGLE) class Mutex { Loading
extra/yassl/include/socket_wrapper.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ #include <assert.h> #ifdef WIN32 #ifdef _WIN32 #include <winsock2.h> #else #include <sys/time.h> Loading @@ -47,7 +47,7 @@ namespace yaSSL { typedef unsigned int uint; #ifdef WIN32 #ifdef _WIN32 typedef SOCKET socket_t; #else typedef int socket_t; Loading
extra/yassl/mySTL/helpers.hpp +15 −8 Original line number Diff line number Diff line Loading @@ -31,32 +31,39 @@ #include <new> // placement new #ifdef __IBMCPP__ /* Workaround for the lack of operator new(size_t, void*) in IBM VA C++ 6.0 */ struct Dummy {}; inline void *operator new(size_t size, Dummy *d) { return (void*) d; } inline void* operator new(size_t size, Dummy* d) { return static_cast<void*>(d); } typedef Dummy* yassl_pointer; #else typedef void* yassl_pointer; #endif namespace mySTL { template <typename T, typename T2> inline void construct(T* p, const T2& value) { new ((yassl_pointer) p) T(value); new (reinterpret_cast<yassl_pointer>(p)) T(value); } template <typename T> inline void construct(T* p) { new (static_cast<void*>(p)) T(); new (reinterpret_cast<yassl_pointer>(p)) T(); } Loading
extra/yassl/src/lock.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ namespace yaSSL { #ifdef MULTI_THREADED #ifdef WIN32 #ifdef _WIN32 Mutex::Mutex() { Loading @@ -54,7 +54,7 @@ namespace yaSSL { LeaveCriticalSection(&mutex_.cs_); } #else // WIN32 #else // _WIN32 Mutex::Mutex() { Loading @@ -80,7 +80,7 @@ namespace yaSSL { } #endif // WIN32 #endif // _WIN32 #endif // MULTI_THREADED Loading