diff options
-rw-r--r-- | extra/yassl/include/yassl_types.hpp | 2 | ||||
-rw-r--r-- | extra/yassl/mySTL/helpers.hpp | 4 | ||||
-rw-r--r-- | extra/yassl/mySTL/list.hpp | 7 |
3 files changed, 10 insertions, 3 deletions
diff --git a/extra/yassl/include/yassl_types.hpp b/extra/yassl/include/yassl_types.hpp index 6359ad54aab..1ad4998bade 100644 --- a/extra/yassl/include/yassl_types.hpp +++ b/extra/yassl/include/yassl_types.hpp @@ -27,7 +27,7 @@ #ifndef yaSSL_TYPES_HPP #define yaSSL_TYPES_HPP -#include<cstddef> +#include <stddef.h> namespace yaSSL { diff --git a/extra/yassl/mySTL/helpers.hpp b/extra/yassl/mySTL/helpers.hpp index fdb856d4db1..779389e322a 100644 --- a/extra/yassl/mySTL/helpers.hpp +++ b/extra/yassl/mySTL/helpers.hpp @@ -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; } diff --git a/extra/yassl/mySTL/list.hpp b/extra/yassl/mySTL/list.hpp index 5bbec6ab7c6..be149b1a984 100644 --- a/extra/yassl/mySTL/list.hpp +++ b/extra/yassl/mySTL/list.hpp @@ -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) {} |