Commit b6c93da2 authored by konstantin@mysql.com's avatar konstantin@mysql.com

yaSSL fixes for Sun Forte 7

parent 5ce823ec
......@@ -27,7 +27,7 @@
#ifndef yaSSL_TYPES_HPP
#define yaSSL_TYPES_HPP
#include<cstddef>
#include <stddef.h>
namespace yaSSL {
......
......@@ -32,8 +32,8 @@
#ifdef __IBMCPP__
/*
Workaround the lack of operator new(size_t, void*)
in IBM VA CPP 6.0
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; }
......
......@@ -38,6 +38,13 @@ namespace mySTL {
template<typename T>
class list {
#ifdef __SUNPRO_CC
/*
Sun Forte 7 C++ v. 5.4 needs class 'node' be public to be visible to
the nested class 'iterator' (a non-standard behaviour).
*/
public:
#endif
struct node {
node(T t) : prev_(0), next_(0), value_(t) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment