Hiding ROOT::Cintex::Cintex::Enable(); from ROOT6 compilation in a backwards compatible way

Try to “#include” anything from ROOT and then (if ROOT 5 will misbehave, replace ROOT_VERSION(6,00,00) with 393216):

#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,00)
// ... ROOT 6.00/00 and newer
#else /* ROOT_VERSION_CODE >= ROOT_VERSION(6,00,00) */
// ... ROOT 5 (and older)
#endif /* ROOT_VERSION_CODE >= ROOT_VERSION(6,00,00) */

See also:

1 Like