On  Saturday, February 02, 2008, 22:53 Szakбts Viktor <[EMAIL PROTECTED]> wrote:

>> 2) Recently the base workarea structure was changed in xHarbour. You
>> know that every RDD have it's own workarea structure with first
>> fields from a basic and some other, specific for this RDD, after the
>> basic, and this structure is kept in a new header file.
>> Now, if I want to keep the Leto RDD working for both Harbour and
>> xHarbour, it's latest and previous versions, I need to provide two
>> header files and leave a note for users of latest xharbour to rename
>> xrddleto.h to rddleto.h before compiling the RDD.

SV> Wouldn't this work ?:
SV> #ifdef __XHARBOUR__
SV>     #include "xrddleto.h"
SV> #else
SV>     #include "rddleto.h"
SV> #endif

 Yes - for respecting the difference between Harbour and xHarbour
 workareas, but not - for the difference between xHarbour's official
 release and it CVS code.

SV> I think we already have that on Harbour level, where
SV> __HARBOUR__ will return you a number.

 I didn't know that. Thanks for a tip.
 

Regards,
 Alexander
http://kresin.belgorod.su

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to