Re: R: [Harbour] Define for version recognition

2008-06-28 Thread Szakáts Viktor
008 22.08 A: 'Harbour Project Main Developer List.' <[EMAIL PROTECTED] project.org> Oggetto: R: [Harbour] Define for version recognition Thanks Massimo. Luckly i've always used the __XHARBOUR__ before the __HARBOUR__ test (or only it) and the things have worked. Nev

R: [Harbour] Define for version recognition

2008-06-27 Thread Massimo Belgrano
roject Main Developer List.' Oggetto: R: [Harbour] Define for version recognition Thanks Massimo. Luckly i've always used the __XHARBOUR__ before the __HARBOUR__ test (or only it) and the things have worked. Never thought __HARBOUR__ have same behaviour in both compilers... Now i sta

R: R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
ROTECTED] Per conto di > Szakáts Viktor > Inviato: venerdì 27 giugno 2008 19.25 > A: Harbour Project Main Developer List. > Oggetto: Re: R: [Harbour] Define for version recognition > > > #ifdef __HARBOUR__ > > #ifdef __HARBOUR_SVN__ > > Code with new feautured f

R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
riginale- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Per conto di > Massimo Belgrano > Inviato: venerdì 27 giugno 2008 11.37 > A: Harbour Project Main Developer List. > Oggetto: RE: [Harbour] Define for version recognition > > #ifdef __HARBOUR__ > If

Re: R: [Harbour] Define for version recognition

2008-06-27 Thread Szakáts Viktor
#ifdef __HARBOUR__ #ifdef __HARBOUR_SVN__ Code with new feautured funcs #else Code with old fashioned funcs #endif #endif #ifdef __XHARBOUR__ #ifdef __XHARBOUR_CVS__ Code with new feautured funcs #else Code with old fashioned funcs #endif #endif With lat

Re: R: [Harbour] Define for version recognition

2008-06-27 Thread Szakáts Viktor
I've changed Harbour to support __HARBOUR__ with the same value in .c and .prg code. [ You can hack this around by including hbverbld.h to your .prg/.c files. But this is not a recommended way of doing it, and may change in the future without notice. ] Minor correction, you only need to explic

Re: R: [Harbour] Define for version recognition

2008-06-27 Thread Szakáts Viktor
[mailto:[EMAIL PROTECTED] Per conto di Szakáts Viktor Inviato: venerdì 27 giugno 2008 1.44 A: Harbour Project Main Developer List. Oggetto: Re: [Harbour] Define for version recognition Hi Maurizio, Pls check the version #defines in include/hbver.h, on .prg level __HARBOUR__ has the version as its

RE: [Harbour] Define for version recognition

2008-06-27 Thread Massimo Belgrano
riginale- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Per conto di > Szakáts Viktor > Inviato: venerdì 27 giugno 2008 1.44 > A: Harbour Project Main Developer List. > Oggetto: Re: [Harbour] Define for version recognition > > Hi Maurizio, > > Pls check th

R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
--- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Per conto di > Szakáts Viktor > Inviato: venerdì 27 giugno 2008 1.44 > A: Harbour Project Main Developer List. > Oggetto: Re: [Harbour] Define for version recognition > > Hi Maurizio, > > Pls check the version

Re: [Harbour] Define for version recognition

2008-06-26 Thread Szakáts Viktor
Hi Maurizio, Pls check the version #defines in include/hbver.h, on .prg level __HARBOUR__ has the version as its value. Brgds, Viktor On 2008.06.26., at 19:19, Maurizio la Cecilia wrote: I don't know if is possible, but i would know if ther'is in Harbour a pre defined constant telling at co

Re: [Harbour] Define for version recognition

2008-06-26 Thread ABIX - Adam Jurkiewicz
Dnia czwartek, 26 czerwca 2008, Maurizio la Cecilia napisał: > I don't know if is possible, but i would know if ther'is in Harbour a pre > defined constant telling at compile time what version (and hopefully Of course, use : HB_SVN_ID - SVN revision __DATE__- compilation date __TIME_

[Harbour] Define for version recognition

2008-06-26 Thread Maurizio la Cecilia
I don't know if is possible, but i would know if ther'is in Harbour a pre defined constant telling at compile time what version (and hopefully subversion) of the compiler is in use. This could allow me to take care of features implemented in newer version and lacking in older version (the stable, b