Use 'static const int' for constants in Doxygen documentation (Issue 343)

pull/347/head
Jeffrey Walton 2016-12-04 16:07:10 -05:00
parent acf15c21c0
commit d01467b754
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 2 deletions

View File

@ -534,8 +534,7 @@ NAMESPACE_END
#endif
// 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__) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
#if (_MSC_VER == 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__)
# define CRYPTOPP_CONSTANT(x) enum {x};
#else
# define CRYPTOPP_CONSTANT(x) static const int x;