From: Andrew Innes Date: Sun, 5 Nov 2000 21:39:32 +0000 (+0000) Subject: (w32_build_number): New variable. X-Git-Tag: emacs-pretest-21.0.90~300 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39f1f6526718396dadb390f939a8b2febfe6a918;p=emacs.git (w32_build_number): New variable. (cache_system_info): Set it. --- diff --git a/src/w32heap.c b/src/w32heap.c index e564a4efedc..eb878a45e94 100644 --- a/src/w32heap.c +++ b/src/w32heap.c @@ -47,6 +47,7 @@ int etext; /* The major and minor versions of NT. */ int w32_major_version; int w32_minor_version; +int w32_build_number; /* Distinguish between Windows NT and Windows 95. */ int os_subtype; @@ -83,6 +84,10 @@ cache_system_info (void) /* Cache os info. */ osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); GetVersionEx (&osinfo_cache); + + w32_build_number = osinfo_cache.dwBuildNumber; + if (os_subtype == OS_WIN95) + w32_build_number &= 0xffff; } /* Emulate getpagesize. */