Hi Alexander, OFF again (sorry from the list members).
Two macro solutions and better (automatic) replacements: --- #if ( defined( HARBOUR_VER_AFTER_101 ) ) -> #if defined( __HARBOUR__ ) && __HARBOUR__ > 0x010100 --- --- #elif defined( HARBOUR_VER_BEFORE_100 ) -> #if ! defined( __HARBOUR__ ) --- [ both work only after #including any Harbour headers and when __XHARBOUR__ is not defined. ] If this is implemented in the code, there is no need to do manual tricks with these macros and these lines can be deleted from *.hbp: '-cflag={!xhb}-DHARBOUR_VER_AFTER_101' [ If you want to keep current logic, and also plan to use hbmk2 for 1.0.x Harbours, you'll need to modify it to: '-cflag={!xhb&!hb10}-DHARBOUR_VER_AFTER_101' ] Brgds, Viktor _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour