Do this: These macros can be used in the following way: #if ROOT_VERSION_CODE >= ROOT_VERSION(2,23,4) #include <newheader.h> #else #include <oldheader.h> #endif These macros are available as soon as you include a ROOT header file. -- Fons On Thu, 2002-05-16 at 11:42, Atila Alves Neves wrote: > Hi, this is a very simple question: does anyone know how to check which > root version is available in the preprocessor? I want to do something like > > #ifdef ROOT301 > ... > #endif > > Thanks in advance, > > Atila Neves -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET