Crypto++ 8.2 Free C++ class library of cryptographic schemes

config_ver.h
Go to the documentation of this file.
1 // config_ver.h - written and placed in public domain by Jeffrey Walton
2 // the bits that make up this source file are from the
3 // library's monolithic config.h.
4
5 /// \file config_ver.h
6 /// \brief Library configuration file
7 /// \details <tt>config.h</tt> was split into components in May 2019 to better
8 /// integrate with Autoconf and its feature tests. The splitting occurred so
9 /// users could continue to include <tt>config.h</tt> while allowing Autoconf
10 /// to write new <tt>config_asm.h</tt> and new <tt>config_cxx.h</tt> using
11 /// its feature tests.
12 /// \sa <A HREF="https://github.com/weidai11/cryptopp/issues/835">Issue 835</A>
13 /// \since Crypto++ 8.3
14
15 #ifndef CRYPTOPP_CONFIG_VERSION_H
16 #define CRYPTOPP_CONFIG_VERSION_H
17
18 // Library version macro. Since this macro is in a header, it reflects
19 // the version of the library the headers came from. It is not
20 // necessarily the version of the library built as a shared object if
21 // versions are inadvertently mixed and matched.
22 #define CRYPTOPP_MAJOR 8
23 #define CRYPTOPP_MINOR 2
24 #define CRYPTOPP_REVISION 0
25 #define CRYPTOPP_VERSION 820
26
27 // Compiler version macros
28
29 #if defined(__GNUC__)
30 # define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
31 #endif
32
33 #if defined(__xlc__) || defined(__xlC__)
34 # define CRYPTOPP_XLC_VERSION ((__xlC__ / 256) * 10000 + (__xlC__ % 256) * 100)
35 #endif
36
37 // Apple and LLVM's Clang. Apple Clang version 7.0 roughly equals LLVM Clang version 3.7
38 // Also see https://gist.github.com/yamaya/2924292
39 #if defined(__clang__) && defined(__apple_build_version__)
40 # undef CRYPTOPP_GCC_VERSION
41 # define CRYPTOPP_APPLE_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
42 #elif defined(__clang__)
43 # undef CRYPTOPP_GCC_VERSION
44 # define CRYPTOPP_LLVM_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
45 #endif
46
47 #ifdef _MSC_VER
48 # define CRYPTOPP_MSC_VERSION (_MSC_VER)
49 #endif
50
51 #endif // CRYPTOPP_CONFIG_VERSION_H