/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Utilities/interface/GCCPrerequisite.h
20 строк
778 B
W. David Dagenhart
Changes from scram build code-format-all
03 май 2019, 18:48
03 май 2019, 18:48
22c28dc
Код
Авторство
О чём код?
#ifndef FWCore_Utilities_GCCPrerequisite_h #define FWCore_Utilities_GCCPrerequisite_h /* Convenience macro to test the version of gcc. Use it like this: #if GCC_PREREQUISITE(3,4,4) ... code requiring gcc 3.4.4 or later ... #endif Note - it won't work for gcc1 since the _MINOR macros were not defined then. */ #if defined __GNUC__ && defined __GNUC_MINOR__ && defined __GNUC_PATCHLEVEL__ #define GCC_PREREQUISITE(maj, min, patch) \ ((__GNUC__ << 16) + (__GNUC_MINOR__ << 8) + __GNUC_PATCHLEVEL__ >= ((maj) << 16) + ((min) << 8) + (patch)) #elif defined __GNUC__ && defined __GNUC_MINOR__ #define GCC_PREREQUISITE(maj, min, patch) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) #else #define GCC_PREREQUISITE(maj, min, patch) 0 #endif #endif