Use 'static const int' for constant Borland/Embarcadero (GH #512)

pull/484/merge
Jeffrey Walton 2017-09-20 18:18:51 -04:00
parent 35c0fa82fd
commit 4b7549a990
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ NAMESPACE_END
#endif #endif
// How to declare class constants // How to declare class constants
#if defined(CRYPTOPP_DOXYGEN_PROCESSING) #if defined(CRYPTOPP_DOXYGEN_PROCESSING) || defined(__BORLANDC__)
# define CRYPTOPP_CONSTANT(x) static const int x; # define CRYPTOPP_CONSTANT(x) static const int x;
#else #else
# define CRYPTOPP_CONSTANT(x) enum {x}; # define CRYPTOPP_CONSTANT(x) enum {x};