[ROOT] How to check for the root version while compile time

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Wed Dec 19 2001 - 12:52:26 MET


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.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET