21#define SEQAN3_STR_HELPER(x) #x
22#define SEQAN3_STR(x) SEQAN3_STR_HELPER(x)
31#ifndef SEQAN3_DOXYGEN_ONLY
32# define SEQAN3_DOXYGEN_ONLY(x)
39#if defined(__GNUC__) && (__GNUC__ < 10)
40# error "SeqAn 3.1.x is the last version that supports GCC 7, 8, and 9. Please upgrade your compiler or use 3.1.x."
43#if SEQAN3_DOXYGEN_ONLY(1) 0
45# define SEQAN3_DISABLE_NEWER_COMPILER_DIAGNOSTIC
48#ifndef SEQAN3_DISABLE_NEWER_COMPILER_DIAGNOSTIC
49# if defined(__GNUC__) && (__GNUC__ > 12)
51 "Your compiler is newer than the latest supported compiler of this SeqAn version (gcc-12). It might be that SeqAn does not compile due to this. You can disable this warning by setting -DSEQAN3_DISABLE_NEWER_COMPILER_DIAGNOSTIC."
62# if (__cplusplus < 201709)
63# error "SeqAn3 requires C++20, make sure that you have set -std=c++20."
66# error "This is not a C++ compiler."
69#if __has_include(<version>)
78#if __has_include(<seqan3/version.hpp>)
81# error SeqAn3 include directory not set correctly. Forgot to add -I ${INSTALLDIR}/include to your CXXFLAGS?
85#if __has_include(<range/v3/version.hpp>)
86# define RANGE_V3_MINVERSION 1100
87# define RANGE_V3_MAXVERSION 1199
90 "Your version: " SEQAN3_STR(RANGE_V3_VERSION) "; minimum version: " SEQAN3_STR( \
91 RANGE_V3_MINVERSION) "; expected maximum version: " SEQAN3_STR(RANGE_V3_MAXVERSION)
92# include <range/v3/version.hpp>
93# if RANGE_V3_VERSION < RANGE_V3_MINVERSION
94# error Your range-v3 library is too old.
95# pragma message(SEQAN3_MSG)
96# elif RANGE_V3_VERSION > RANGE_V3_MAXVERSION
97# pragma GCC warning "Your range-v3 library is possibly too new. Some features might not work correctly."
98# pragma message(SEQAN3_MSG)
102# error The range-v3 library was not included correctly. Forgot to add -I ${INSTALLDIR}/include to your CXXFLAGS?
106#if __has_include(<sdsl/version.hpp>)
107# include <sdsl/version.hpp>
108static_assert(sdsl::sdsl_version_major == 3,
"Only version 3 of the SDSL is supported by SeqAn3.");
110# error The sdsl library was not included correctly. Forgot to add -I ${INSTALLDIR}/include to your CXXFLAGS?
118#ifndef SEQAN3_WITH_CEREAL
119# if __has_include(<cereal/cereal.hpp>)
120# define SEQAN3_WITH_CEREAL 1
122# define SEQAN3_WITH_CEREAL 0
124#elif SEQAN3_WITH_CEREAL != 0
125# if !__has_include(<cereal/cereal.hpp>)
126# error Cereal was marked as required, but not found!
131#if !SEQAN3_WITH_CEREAL
137# define CEREAL_SERIALIZE_FUNCTION_NAME serialize
138# define CEREAL_LOAD_FUNCTION_NAME load
139# define CEREAL_SAVE_FUNCTION_NAME save
140# define CEREAL_LOAD_MINIMAL_FUNCTION_NAME load_minimal
141# define CEREAL_SAVE_MINIMAL_FUNCTION_NAME save_minimal
151#ifndef SEQAN3_WITH_LEMON
152# if __has_include(<lemon/config.h>)
153# define SEQAN3_WITH_LEMON 1
155# define SEQAN3_WITH_LEMON 0
157#elif SEQAN3_WITH_LEMON != 0
158# if !__has_include(<lemon/config.h>)
159# error Lemon was marked as required, but not found!
162#if SEQAN3_WITH_LEMON == 1
163# define LEMON_HAVE_LONG_LONG 1
164# define LEMON_CXX11 1
165# if defined(__unix__) || defined(__APPLE__)
166# define LEMON_USE_PTHREAD 1
167# define LEMON_USE_WIN32_THREADS 0
168# define LEMON_WIN32 0
170# define LEMON_USE_PTHREAD 0
171# define LEMON_USE_WIN32_THREADS 1
172# define LEMON_WIN32 1
184# define SEQAN3_PRAGMA(non_string_literal) _Pragma(# non_string_literal)
188#ifndef SEQAN3_DEPRECATED_HEADER
189# ifndef SEQAN3_DISABLE_DEPRECATED_WARNINGS
190# define SEQAN3_DEPRECATED_HEADER(message) SEQAN3_PRAGMA(GCC warning message)
192# define SEQAN3_DEPRECATED_HEADER(message)
197#ifndef SEQAN3_REMOVE_DEPRECATED_330
198# ifndef SEQAN3_DEPRECATED_330
199# ifndef SEQAN3_DISABLE_DEPRECATED_WARNINGS
200# define SEQAN3_DEPRECATED_330 \
201 [[deprecated("This will be removed in SeqAn-3.3.0; please see the documentation.")]]
203# define SEQAN3_DEPRECATED_330
220#if defined(__GNUC__) && (__GNUC__ == 10 && __GNUC_MINOR__ <= 2)
221# pragma GCC warning \
222 "Be aware that gcc 10.0, 10.1 and 10.2 are known to have several bugs that might make SeqAn3 fail to compile. Please use gcc >= 10.3."
225#ifndef SEQAN3_WORKAROUND_VIEW_PERFORMANCE
227# define SEQAN3_WORKAROUND_VIEW_PERFORMANCE 1
231#ifndef SEQAN3_WORKAROUND_GCC_96070
232# if defined(__GNUC__) && (__GNUC__ == 10 && __GNUC_MINOR__ < 4)
233# define SEQAN3_WORKAROUND_GCC_96070 1
235# define SEQAN3_WORKAROUND_GCC_96070 0
241#ifndef SEQAN3_WORKAROUND_GCC_PIPEABLE_CONFIG_CONCEPT
242# if defined(__GNUC__) && (__GNUC__ < 11)
243# define SEQAN3_WORKAROUND_GCC_PIPEABLE_CONFIG_CONCEPT 1
245# define SEQAN3_WORKAROUND_GCC_PIPEABLE_CONFIG_CONCEPT 0
250#ifndef SEQAN3_WORKAROUND_DEFAULT_CONSTRUCTIBLE_VIEW
251# if defined(__GNUC__) && (__GNUC__ < 12)
252# define SEQAN3_WORKAROUND_DEFAULT_CONSTRUCTIBLE_VIEW 1
254# define SEQAN3_WORKAROUND_DEFAULT_CONSTRUCTIBLE_VIEW 0
260#ifndef SEQAN3_WORKAROUND_GCC_100139
261# if defined(__GNUC__) && (__GNUC__ < 12)
262# define SEQAN3_WORKAROUND_GCC_100139 1
264# define SEQAN3_WORKAROUND_GCC_100139 0
271#ifndef SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
272# if defined(__GNUC__) && (__GNUC__ == 12 && __GNUC_MINOR__ < 2)
273# define SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY 1
275# define SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY 0
289#ifndef SEQAN3_WORKAROUND_GCC_NO_CXX11_ABI
290# if defined(_GLIBCXX_USE_CXX11_ABI) && _GLIBCXX_USE_CXX11_ABI == 0
291# define SEQAN3_WORKAROUND_GCC_NO_CXX11_ABI 1
293# define SEQAN3_WORKAROUND_GCC_NO_CXX11_ABI 0
297#if SEQAN3_DOXYGEN_ONLY(1) 0
299# define SEQAN3_DISABLE_LEGACY_STD_DIAGNOSTIC
302#if defined(_GLIBCXX_USE_CXX11_ABI) && _GLIBCXX_USE_CXX11_ABI == 0
303# ifndef SEQAN3_DISABLE_LEGACY_STD_DIAGNOSTIC
305 "We do not actively support compiler that have -D_GLIBCXX_USE_CXX11_ABI=0 set, and it might be that SeqAn does not compile due to this. It is known that all compiler of CentOS 7 / RHEL 7 set this flag by default (and that it cannot be overridden!). Note that these versions of the OSes are community-supported (see https://docs.seqan.de/seqan/3-master-user/about_api.html#platform_stability for more details). You can disable this warning by setting -DSEQAN3_DISABLE_LEGACY_STD_DIAGNOSTIC."
315#undef SEQAN3_STR_HELPER
Provides SeqAn version macros and global variables.