diff --git a/harbour/source/rtl/trim.c b/harbour/source/rtl/trim.c index 2ab86e38c6..77822bd386 100644 --- a/harbour/source/rtl/trim.c +++ b/harbour/source/rtl/trim.c @@ -144,7 +144,7 @@ HB_FUNC( ALLTRIM ) ULONG ulLen = hb_strRTrimLen( pszText, hb_itemGetCLen( pText ), ISLOG( 2 ) ? hb_parl( 2 ) : FALSE ); - hb_strLTrim( pszText, &ulLen ); + pszText = hb_strLTrim( pszText, &ulLen ); hb_retclen( pszText, ulLen ); } else diff --git a/harbour/source/vm/extend.c b/harbour/source/vm/extend.c index ec79e85109..edef5fe375 100644 --- a/harbour/source/vm/extend.c +++ b/harbour/source/vm/extend.c @@ -424,7 +424,7 @@ int hb_parinfo( int iParam ) } } -#ifndef HB_EXTEND_API_MACROS +#ifndef HB_API_MACROS int hb_pcount( void ) {