Use 'static const int' for constant Borland/Embarcadero (GH #512)
parent
35c0fa82fd
commit
4b7549a990
2
config.h
2
config.h
|
|
@ -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};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue