aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes2000-11-05 21:39:32 +0000
committerAndrew Innes2000-11-05 21:39:32 +0000
commit39f1f6526718396dadb390f939a8b2febfe6a918 (patch)
tree3e97a4f7d0d6f6bde76297e525f3562af7a89a8b /src
parent0ae88b4d460194e22b7050157c3222c81191f650 (diff)
downloademacs-39f1f6526718396dadb390f939a8b2febfe6a918.tar.gz
emacs-39f1f6526718396dadb390f939a8b2febfe6a918.zip
(w32_build_number): New variable.
(cache_system_info): Set it.
Diffstat (limited to 'src')
-rw-r--r--src/w32heap.c5
1 files changed, 5 insertions, 0 deletions
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;
47/* The major and minor versions of NT. */ 47/* The major and minor versions of NT. */
48int w32_major_version; 48int w32_major_version;
49int w32_minor_version; 49int w32_minor_version;
50int w32_build_number;
50 51
51/* Distinguish between Windows NT and Windows 95. */ 52/* Distinguish between Windows NT and Windows 95. */
52int os_subtype; 53int os_subtype;
@@ -83,6 +84,10 @@ cache_system_info (void)
83 /* Cache os info. */ 84 /* Cache os info. */
84 osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); 85 osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
85 GetVersionEx (&osinfo_cache); 86 GetVersionEx (&osinfo_cache);
87
88 w32_build_number = osinfo_cache.dwBuildNumber;
89 if (os_subtype == OS_WIN95)
90 w32_build_number &= 0xffff;
86} 91}
87 92
88/* Emulate getpagesize. */ 93/* Emulate getpagesize. */