diff --git a/config.h b/config.h index 8a26dd0a..db594544 100644 --- a/config.h +++ b/config.h @@ -449,7 +449,7 @@ NAMESPACE_END #endif // how to declare class constants -#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) +#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__) # define CRYPTOPP_CONSTANT(x) enum {x}; #else # define CRYPTOPP_CONSTANT(x) static const int x; diff --git a/seckey.h b/seckey.h index 01176913..a08eedee 100644 --- a/seckey.h +++ b/seckey.h @@ -194,12 +194,10 @@ public: //! \details keylength is provided in bytes, not bits. static size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength) { -#if !defined(__BORLANDC__) #if MIN_KEYLENGTH > 0 if (keylength < (size_t)MIN_KEYLENGTH) return MIN_KEYLENGTH; else -#endif #endif if (keylength > (size_t)MAX_KEYLENGTH) return (size_t)MAX_KEYLENGTH;