Thomas Bretz wrote: > > Hi all, > > many times now I had the following problem: I updated to a new root > version and changed something old to something new. eg replaced > gSystem->ProcessEvents by gClient->ProcessEventsFor. But there are still > other people outside (10-20) which may still use an older root version. > For some kind of overlapping time I would like to make it compile for > both root versions by something like: > #ifdef ROOT_VERSION > 30105 > .... > #else > .... > #endif > But such a feature is missing. I would really recommend to implement > something like a -DROOT_VERSION=30105 in root-config which I can use in > a statement like one above. > > Best regards, > Thomas. Hi, I think there's such a thing already in RVersion.h, which let you do things like : #include "RVersion.h" #if ROOT_VERSION_CODE >= ROOT_VERSION(3,01,5) #include "TBranchElement.h" #endif Hope this helps, -- Dr. Laurent APHECETCHE (mailto:aphecetc@in2p3.fr) (IN2P3-CNRS) SUBATECH-EMN-4 rue Alfred Kastler-BP 20722-44307 NANTES cedex 03 TEL (+33/0) 2 51 85 84 17 - FAX (+33/0) 2 51 85 84 24 (France) Collaborations PHENIX http://www.phenix.bnl.gov/~aphecetc et MEGAPIE.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET