Security Scol plugin
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
21
22#ifndef CRYPTOPP_CONFIG_VERSION_H
23#define CRYPTOPP_CONFIG_VERSION_H
24
31#define CRYPTOPP_MAJOR 8
38#define CRYPTOPP_MINOR 7
45#define CRYPTOPP_REVISION 0
46
53#define CRYPTOPP_VERSION 870
54
55// Compiler version macros
56
57#if defined(__GNUC__)
58# define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
59#endif
60
61// Apple and LLVM Clang versions. Apple Clang version 7.0 roughly equals
62// LLVM Clang version 3.7. Also see https://gist.github.com/yamaya/2924292
63#if defined(__clang__) && defined(__apple_build_version__)
64# undef CRYPTOPP_GCC_VERSION
65# define CRYPTOPP_APPLE_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
66#elif defined(__clang__)
67# undef CRYPTOPP_GCC_VERSION
68# define CRYPTOPP_LLVM_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
69#endif
70
71// Clang pretends to be other compilers. The compiler gets into
72// code paths that it cannot compile. Unset Clang to save the grief.
73// Also see http://github.com/weidai11/cryptopp/issues/147.
74
75#if defined(__xlc__) || defined(__xlC__)
76# undef CRYPTOPP_LLVM_CLANG_VERSION
77# define CRYPTOPP_XLC_VERSION ((__xlC__ / 256) * 10000 + (__xlC__ % 256) * 100)
78#endif
79
80#ifdef __INTEL_COMPILER
81# undef CRYPTOPP_LLVM_CLANG_VERSION
82# define CRYPTOPP_INTEL_VERSION (__INTEL_COMPILER)
83#endif
84
85#ifdef _MSC_VER
86# undef CRYPTOPP_LLVM_CLANG_VERSION
87# define CRYPTOPP_MSC_VERSION (_MSC_VER)
88#endif
89
90#endif // CRYPTOPP_CONFIG_VERSION_H