From: Danny Mayer Date: Thu, 1 Aug 2002 03:41:49 +0000 (+0000) Subject: Moved Win32 Version information to Win32os.c X-Git-Tag: v9.2.3rc1~104^2~430 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=498e1c30b2cf6eadfe1a32277a576991d00e4990;p=thirdparty%2Fbind9.git Moved Win32 Version information to Win32os.c --- diff --git a/lib/isc/win32/os.c b/lib/isc/win32/os.c index 41190987298..e71b40ef85e 100644 --- a/lib/isc/win32/os.c +++ b/lib/isc/win32/os.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000, 2001 Internet Software Consortium. + * Copyright (C) 2000-2002 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -15,24 +15,21 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.4 2001/07/17 20:29:30 gson Exp $ */ +/* $Id: os.c,v 1.5 2002/08/01 03:41:49 mayer Exp $ */ #include +#include + static BOOL bInit = FALSE; static SYSTEM_INFO SystemInfo; -static OSVERSIONINFO osVer; static void initialize_action(void) { - BOOL bSuccess; - if (bInit) return; GetSystemInfo(&SystemInfo); - osVer.dwOSVersionInfoSize = sizeof(osVer); - bSuccess = GetVersionEx(&osVer); bInit = TRUE; } @@ -46,15 +43,3 @@ isc_os_ncpus(void) { return ((unsigned int)ncpus); } - -unsigned int -isc_os_majorversion(void) { - initialize_action(); - return ((unsigned int)osVer.dwMajorVersion); -} - -unsigned int -isc_os_minorversion(void) { - initialize_action(); - return ((unsigned int)osVer.dwMinorVersion); -}