From 7e7d04884f64c647f62eca9957a8bbc49a1016ba Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 3 Jul 2008 19:54:58 +0000 Subject: [PATCH] 2008-07-03 21:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/common/hbver.c ! Fixed version detection to not break when compiling for WinCE. ; Marek, thanks a lot. --- harbour/ChangeLog | 5 +++++ harbour/source/common/hbver.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2f8db40147..ae44724ff4 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-07-03 21:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + * source/common/hbver.c + ! Fixed version detection to not break when compiling for WinCE. + ; Marek, thanks a lot. + 2008-07-03 21:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbmzip/hbmzip.c * Temply disabled new OS/2 code to go on with the RC2 release. diff --git a/harbour/source/common/hbver.c b/harbour/source/common/hbver.c index 8378de1760..9a46e4de44 100644 --- a/harbour/source/common/hbver.c +++ b/harbour/source/common/hbver.c @@ -222,6 +222,7 @@ char * hb_verPlatform( void ) if( osVer.dwMajorVersion == 6 ) { +#if !defined(HB_WINCE) OSVERSIONINFOEXA osVerEx; osVerEx.dwOSVersionInfoSize = sizeof( osVerEx ); @@ -234,6 +235,7 @@ char * hb_verPlatform( void ) pszName = "Windows Server 2008"; } else +#endif pszName = "Windows"; } else if( osVer.dwMajorVersion == 5 && osVer.dwMinorVersion >= 2 )