Commit 9aff64b6 authored by unknown's avatar unknown

WL#2286 - Compile MySQL w/YASSL support

Portability fixes


extra/yassl/include/buffer.hpp:
  Use assert.h instead of less portable cassert
extra/yassl/include/log.hpp:
  Use stdio.h instead of less portable cstdio
extra/yassl/include/socket_wrapper.hpp:
  Use assert.h instead of less portable cassert
extra/yassl/mySTL/helpers.hpp:
  Use stdlib.h instead of less portable cstdlib
extra/yassl/mySTL/stdexcept.hpp:
  Use string.h instead of less portable cstring
extra/yassl/mySTL/vector.hpp:
  Use assert.h instead of less portable cassert
extra/yassl/src/ssl.cpp:
  Use stdio.h instead of less portable cstdio
extra/yassl/taocrypt/include/block.hpp:
  Use stddef.h instead of less portable cstddef, always use ptrdiff_t instead of less portable std::ptrdiff_t
extra/yassl/taocrypt/include/file.hpp:
  Use stdio.h instead of less portable cstdio
extra/yassl/taocrypt/include/integer.hpp:
  Use string.h instead of less portable cstring
extra/yassl/taocrypt/include/runtime.hpp:
  Use stdlib.h instead of less portable cstdlib
extra/yassl/taocrypt/src/dh.cpp:
  Use math.h instead of less portable cmatch
parent ce7c08f5
......@@ -27,7 +27,7 @@
#ifndef yaSSL_BUFFER_HPP
#define yaSSL_BUFFER_HPP
#include <cassert> // assert
#include <assert.h> // assert
#include "yassl_error.hpp" // Error
#include "memory.hpp" // mySTL::auto_ptr
#include "algorithm.hpp" // mySTL::swap
......
......@@ -30,7 +30,7 @@
#include "socket_wrapper.hpp"
#ifdef YASSL_LOG
#include <cstdio>
#include <stdio.h>
#endif
namespace yaSSL {
......
......@@ -29,7 +29,7 @@
#ifndef yaSSL_SOCKET_WRAPPER_HPP
#define yaSSL_SOCKET_WRAPPER_HPP
#include <cassert>
#include <assert.h>
#ifdef WIN32
#include <winsock2.h>
......
......@@ -27,7 +27,7 @@
#ifndef mySTL_HELPERS_HPP
#define mySTL_HELPERS_HPP
#include <cstdlib>
#include <stdlib.h>
namespace mySTL {
......
......@@ -28,7 +28,7 @@
#define mySTL_STDEXCEPT_HPP
#include <cstring> // strncpy
#include <string.h> // strncpy
namespace mySTL {
......
......@@ -31,7 +31,7 @@
#include "helpers.hpp" // construct, destory, fill, etc.
#include "algorithm.hpp" // swap
#include <new> // ::operator new and delete, placement too
#include <cassert> // assert
#include <assert.h> // assert
namespace mySTL {
......
......@@ -36,7 +36,7 @@
#include "openssl/ssl.h"
#include "handshake.hpp"
#include "yassl_int.hpp"
#include <cstdio>
#include <stdio.h>
namespace yaSSL {
......
......@@ -31,7 +31,7 @@
#include "stdexcept.hpp" // mySTL::runtime_error
#include "misc.hpp"
#include <string.h> // memcpy
#include <cstddef> // ptrdiff_t
#include <stddef.h> // ptrdiff_t
#if defined(_MSC_VER) && defined(_CRTAPI1)
......@@ -49,11 +49,7 @@ class AllocatorBase
public:
typedef T value_type;
typedef size_t size_type;
#ifdef TAOCRYPT_MSVCRT6
typedef ptrdiff_t difference_type;
#else
typedef std::ptrdiff_t difference_type;
#endif
typedef T* pointer;
typedef const T* const_pointer;
typedef T& reference;
......
......@@ -29,7 +29,7 @@
#include "misc.hpp"
#include "block.hpp"
#include "error.hpp"
#include <cstdio>
#include <stdio.h>
namespace TaoCrypt {
......
......@@ -29,7 +29,7 @@
#include "block.hpp"
#include "random.hpp"
#include "file.hpp"
#include <cstring>
#include <string.h>
#include "algorithm.hpp" // mySTL::swap
......
......@@ -31,7 +31,7 @@
#if __GNUC__ > 2
#include <cstdlib>
#include <stdlib.h>
static void* operator new (size_t sz)
......
......@@ -26,7 +26,7 @@
#include "runtime.hpp"
#include "dh.hpp"
#include "asn.hpp"
#include <cmath>
#include <math.h>
namespace TaoCrypt {
......
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