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
return true in Harbour and xharbour! > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Maurizio la Cecilia > Sent: Friday, June 27, 2008 11:23 AM > To: 'Harbour Project Main Developer List.' > Subject: R: [Harbour] Defin

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
Hi Maurizio, I was suggesting these for app/lib compile time. Even for that there is the C level and the .prg level, and they are different. On .prg level __HARBOUR__ returns 256, which means 0x0100, like 1.00. On .c level you can use HB_VERSION after #including "hbver.h". You cannot access SV

R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
Hi Viktor, to be clearer i'm searching something allowing a code as: #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 #e