Add "stdcpp.h" to bench1.cpp and bench2.cpp (GH #520)
This is the first of possibly two or three for Borland compilers. We have to be careful because its very easy to break something due to math overloads with other compilers like SunCC or XL/Cpull/531/head
parent
f1a80e6a58
commit
642cf3aa74
|
|
@ -17,6 +17,7 @@
|
||||||
#include "drbg.h"
|
#include "drbg.h"
|
||||||
#include "rdrand.h"
|
#include "rdrand.h"
|
||||||
#include "padlkrng.h"
|
#include "padlkrng.h"
|
||||||
|
#include "stdcpp.h"
|
||||||
|
|
||||||
#if CRYPTOPP_MSC_VERSION
|
#if CRYPTOPP_MSC_VERSION
|
||||||
# pragma warning(disable: 4355)
|
# pragma warning(disable: 4355)
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
#include "pssr.h"
|
#include "pssr.h"
|
||||||
#include "oids.h"
|
#include "oids.h"
|
||||||
#include "randpool.h"
|
#include "randpool.h"
|
||||||
|
#include "stdcpp.h"
|
||||||
|
|
||||||
#if CRYPTOPP_MSC_VERSION
|
#if CRYPTOPP_MSC_VERSION
|
||||||
# pragma warning(disable: 4505 4355)
|
# pragma warning(disable: 4505 4355)
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@
|
||||||
#include "algparam.h"
|
#include "algparam.h"
|
||||||
#include "smartptr.h"
|
#include "smartptr.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
#include "stdcpp.h"
|
||||||
#include <vector>
|
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
#ifdef _OPENMP
|
#ifdef _OPENMP
|
||||||
# include <omp.h>
|
# include <omp.h>
|
||||||
|
|
|
||||||
1
stdcpp.h
1
stdcpp.h
|
|
@ -48,6 +48,7 @@ namespace std {
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
// uintptr_t and ptrdiff_t
|
// uintptr_t and ptrdiff_t
|
||||||
#if (__cplusplus < 201103L) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
|
#if (__cplusplus < 201103L) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue