diff options
author | Andrew Innes <andrewi@gnu.org> | 2000-11-05 21:39:32 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 2000-11-05 21:39:32 +0000 |
commit | 39f1f6526718396dadb390f939a8b2febfe6a918 (patch) | |
tree | 3e97a4f7d0d6f6bde76297e525f3562af7a89a8b /src/w32heap.c | |
parent | 0ae88b4d460194e22b7050157c3222c81191f650 (diff) |
(w32_build_number): New variable.
(cache_system_info): Set it.
Diffstat (limited to 'src/w32heap.c')
-rw-r--r-- | src/w32heap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32heap.c b/src/w32heap.c index e564a4efed..eb878a45e9 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. */ |