diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 63d84cb6e3..8782337d48 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -2,13 +2,14 @@ * source/rtl/environ.c * include/hbapi.h - % Reorganized. Now the motto is that each target platform should first - detect the version of the native platform version, then if applicable - (only in DOS currently) detect the host OS. + % OS() function reorganized. Now the motto is that each target platform + should first detect the version of the native platform version, then if + applicable (only in DOS currently) detect the host OS. This way the source is *far* more clean, and consistent between platforms and compilers. + Added WinNT detection for the DOS platform. * #ifdef mess removed. + % Win32 version detection optimized. + C callable version added (hb_os()) * Some variables renamed. ; Tested with BCC55, BCC31, CYGWIN, MINGW32, MSC8 (compile only), diff --git a/harbour/source/rtl/environ.c b/harbour/source/rtl/environ.c index 23fd18658b..a0e6b20e12 100644 --- a/harbour/source/rtl/environ.c +++ b/harbour/source/rtl/environ.c @@ -99,7 +99,7 @@ The latter is mainly an issue in DOS, where the host OS can be OS/2 WinNT/2K, Win3x, Win9x, DOSEMU, Desqview, etc. [vszakats] */ -#define HB_OS_BUFFER_LEN 80 +#define HB_OS_BUFFER_LEN 128 char * hb_os( void ) {