diff --git a/config.compat b/config.compat index 4a1db7d8..f835561d 100644 --- a/config.compat +++ b/config.compat @@ -570,7 +570,7 @@ NAMESPACE_END // How to declare class constants // Use enum for OS X 10.5 ld, http://github.com/weidai11/cryptopp/issues/255 -#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__) +#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__) || defined(CRYPTOPP_DOXYGEN_PROCESSING) # define CRYPTOPP_CONSTANT(x) enum {x}; #else # define CRYPTOPP_CONSTANT(x) static const int x; diff --git a/config.h b/config.h index 39ab7e4e..140e2e31 100644 --- a/config.h +++ b/config.h @@ -570,7 +570,7 @@ NAMESPACE_END // How to declare class constants // Use enum for OS X 10.5 ld, http://github.com/weidai11/cryptopp/issues/255 -#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__) +#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__) || defined(CRYPTOPP_DOXYGEN_PROCESSING) # define CRYPTOPP_CONSTANT(x) enum {x}; #else # define CRYPTOPP_CONSTANT(x) static const int x;