summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-09-06 18:57:21 +0200
committerunknown <msvensson@neptunus.(none)>2005-09-06 18:57:21 +0200
commit2f886b93388bc2d1076adaaad03ca0720016cb69 (patch)
tree837584f319fcb99ea6be9697ad23ae78a4fb41a9 /extra
parenta34ca4bf817ecd4d6f2f6160fc4c570d7cdeee88 (diff)
downloadmariadb-git-2f886b93388bc2d1076adaaad03ca0720016cb69.tar.gz
Bug #12715 Compilation of yassl/algebra.ccp fails on buildqnx2
- Workaround extra/yassl/mySTL/helpers.hpp: Workaround for QNX extra/yassl/mySTL/list.hpp: Use workaround for placement new extra/yassl/taocrypt/src/misc.cpp: Don't include <new>
Diffstat (limited to 'extra')
-rw-r--r--extra/yassl/mySTL/helpers.hpp8
-rw-r--r--extra/yassl/mySTL/list.hpp4
-rw-r--r--extra/yassl/taocrypt/src/misc.cpp1
3 files changed, 3 insertions, 10 deletions
diff --git a/extra/yassl/mySTL/helpers.hpp b/extra/yassl/mySTL/helpers.hpp
index 8d2061fc4f1..de825c23fec 100644
--- a/extra/yassl/mySTL/helpers.hpp
+++ b/extra/yassl/mySTL/helpers.hpp
@@ -28,14 +28,11 @@
#define mySTL_HELPERS_HPP
#include <stdlib.h>
-#include <new> // placement new
-
-
-#ifdef __IBMCPP__
/*
Workaround for the lack of operator new(size_t, void*)
in IBM VA C++ 6.0
+ Also used as a workaround to avoid including <new>
*/
struct Dummy {};
@@ -45,9 +42,6 @@
}
typedef Dummy* yassl_pointer;
-#else
- typedef void* yassl_pointer;
-#endif
namespace mySTL {
diff --git a/extra/yassl/mySTL/list.hpp b/extra/yassl/mySTL/list.hpp
index 8aaeefaafe8..dd8485f48a7 100644
--- a/extra/yassl/mySTL/list.hpp
+++ b/extra/yassl/mySTL/list.hpp
@@ -164,7 +164,7 @@ void list<T>::push_front(T t)
{
void* mem = malloc(sizeof(node));
if (!mem) abort();
- node* add = new (mem) node(t);
+ node* add = new (reinterpret_cast<yassl_pointer>(mem)) node(t);
if (head_) {
add->next_ = head_;
@@ -210,7 +210,7 @@ void list<T>::push_back(T t)
{
void* mem = malloc(sizeof(node));
if (!mem) abort();
- node* add = new (mem) node(t);
+ node* add = new (reinterpret_cast<yassl_pointer>(mem)) node(t);
if (tail_) {
tail_->next_ = add;
diff --git a/extra/yassl/taocrypt/src/misc.cpp b/extra/yassl/taocrypt/src/misc.cpp
index ef051332098..0b33bb38aea 100644
--- a/extra/yassl/taocrypt/src/misc.cpp
+++ b/extra/yassl/taocrypt/src/misc.cpp
@@ -24,7 +24,6 @@
#include "runtime.hpp"
#include "misc.hpp"
-#include <new> // for NewHandler
void* operator new(size_t sz, TaoCrypt::new_t)