From c5c6a6af5ca4bcbcbcd84c995ad5b65828b46eab Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 16 Aug 2017 05:11:37 -0400 Subject: [PATCH] Fix Doxygen constant documentation --- config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 0cb20bb5..3176832c 100644 --- a/config.h +++ b/config.h @@ -535,7 +535,11 @@ NAMESPACE_END //#else //# define CRYPTOPP_CONSTANT(x) static const int x; //#endif -#define CRYPTOPP_CONSTANT(x) enum {x}; +#if defined(CRYPTOPP_DOXYGEN_PROCESSING) +# define CRYPTOPP_CONSTANT(x) static const int x; +#else +# define CRYPTOPP_CONSTANT(x) enum {x}; +#endif // Linux provides X32, which is 32-bit integers, longs and pointers on x86_64 using the full x86_64 register set. // Detect via __ILP32__ (http://wiki.debian.org/X32Port). However, __ILP32__ shows up in more places than