From 3a2107c2feb4024c5176763446da9386922fe22d Mon Sep 17 00:00:00 2001 From: Tamas Tevesz Date: Tue, 5 Mar 2013 10:26:53 +0000 Subject: [PATCH] 2013-03-05 11:22 UTC+0100 Tamas TEVESZ (ice extreme.hu) * src/common/hbver.c ! Open64 5.0 does not define __OPENCC_PATCHLEVEL__ to a numeric value; treat it as 0. --- harbour/ChangeLog.txt | 5 +++++ harbour/src/common/hbver.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/harbour/ChangeLog.txt b/harbour/ChangeLog.txt index cca05e77c4..7d51363c0f 100644 --- a/harbour/ChangeLog.txt +++ b/harbour/ChangeLog.txt @@ -10,6 +10,11 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-03-05 11:22 UTC+0100 Tamas TEVESZ (ice extreme.hu) + * src/common/hbver.c + ! Open64 5.0 does not define __OPENCC_PATCHLEVEL__ to + a numeric value; treat it as 0. + 2013-03-04 16:53 UTC+0100 Viktor Szakats (harbour syenar.net) * utils/hbmk2/hbmk2.prg % eliminated unnecessary groups from regexps diff --git a/harbour/src/common/hbver.c b/harbour/src/common/hbver.c index 96b113e506..f0a2755ba0 100644 --- a/harbour/src/common/hbver.c +++ b/harbour/src/common/hbver.c @@ -787,6 +787,10 @@ char * hb_verCompiler( void ) iVerMajor = __OPENCC__; iVerMinor = __OPENCC_MINOR__; +#if __OPENCC_PATCHLEVEL__ - 0 <= 0 + #undef __OPENCC_PATCHLEVEL__ + #define __OPENCC_PATCHLEVEL__ 0 +#endif iVerPatch = __OPENCC_PATCHLEVEL__; #elif defined( _MSC_VER )