Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: cReceivers in plugins



On 09 May 2003 Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> wrote:

> To all other VDR users: YOU DON'T NEED THIS PATCH AT THE MOMENT!!!
> (I'm just saying this because apparently there are lots of people
> who blindly apply any patch they come across, without even wondering
> what it might be good for... ;-).

Why don't you add a define with the VDR version number which is
actually usable from the preprocessor?

Something like:

#define VDR_VERSION_NUM 10131

calculated as Version*10000 + Major*100 + Minor
e.g.          1*10000       + 1*100     + 31
or for 1.2.0  1*10000       + 2*100     + 0

This way plugins could detect the version at compile time and
act according to this:

#if VDR_VERSION_NUM > 10130
  stuff...
#else
  other stuff ...
#endif

CU.

-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index