From 6e8d9c5dc8f24af1304ccd4c15ead4265037d14a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 1 Apr 2000 03:04:15 +0000 Subject: [PATCH] 20000401-04:57 GMT+1 Victor Szakats --- harbour/ChangeLog | 7 ++++--- harbour/source/rtl/environ.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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 ) {