Commit fd6acea2 authored by unknown's avatar unknown
Browse files

yaSSL fixes for Sun Forte 7


extra/yassl/include/yassl_types.hpp:
  A fix for Sun Forte 7
extra/yassl/mySTL/helpers.hpp:
  Better comment for the previous fix.
extra/yassl/mySTL/list.hpp:
  A fix for Sun Forte 7
parent 3b2ba12e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
#ifndef yaSSL_TYPES_HPP
#define yaSSL_TYPES_HPP

#include<cstddef>
#include <stddef.h>

namespace yaSSL {

+2 −2
Original line number Diff line number Diff line
@@ -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; }
+7 −0
Original line number Diff line number Diff line
@@ -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) {}