From 642cf3aa7486b0f4d1414e46ffe26d3f6a961b0c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 12 Oct 2017 21:52:23 -0400 Subject: [PATCH] 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/C --- bench1.cpp | 1 + bench2.cpp | 1 + nbtheory.cpp | 4 +--- stdcpp.h | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bench1.cpp b/bench1.cpp index 0a03ce7a..eeefadbb 100644 --- a/bench1.cpp +++ b/bench1.cpp @@ -17,6 +17,7 @@ #include "drbg.h" #include "rdrand.h" #include "padlkrng.h" +#include "stdcpp.h" #if CRYPTOPP_MSC_VERSION # pragma warning(disable: 4355) diff --git a/bench2.cpp b/bench2.cpp index 4381d317..c348183b 100644 --- a/bench2.cpp +++ b/bench2.cpp @@ -30,6 +30,7 @@ #include "pssr.h" #include "oids.h" #include "randpool.h" +#include "stdcpp.h" #if CRYPTOPP_MSC_VERSION # pragma warning(disable: 4505 4355) diff --git a/nbtheory.cpp b/nbtheory.cpp index c3d43757..feb5802d 100644 --- a/nbtheory.cpp +++ b/nbtheory.cpp @@ -10,9 +10,7 @@ #include "algparam.h" #include "smartptr.h" #include "misc.h" - -#include -#include +#include "stdcpp.h" #ifdef _OPENMP # include diff --git a/stdcpp.h b/stdcpp.h index c9b36b83..b58b976b 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -48,6 +48,7 @@ namespace std { #include #include #include +#include // uintptr_t and ptrdiff_t #if (__cplusplus < 201103L) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))