aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeoff Voelker1999-06-24 22:05:35 +0000
committerGeoff Voelker1999-06-24 22:05:35 +0000
commitb9cad9c16eb54ad819137af4f7e44489f99a4d7b (patch)
tree76bbc191b5ea531ab1e93e49acae13892952d22c /src
parentc5247da2674c0dfb9fc4d31f1241cc3713bfada3 (diff)
downloademacs-b9cad9c16eb54ad819137af4f7e44489f99a4d7b.tar.gz
emacs-b9cad9c16eb54ad819137af4f7e44489f99a4d7b.zip
w32heap.c (osinfo_cache): New variable.
(cache_system_info): Initialize osinfo_cache.
Diffstat (limited to 'src')
-rw-r--r--src/w32heap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/w32heap.c b/src/w32heap.c
index 38f7ffe0534..69144b25038 100644
--- a/src/w32heap.c
+++ b/src/w32heap.c
@@ -34,6 +34,10 @@ Boston, MA 02111-1307, USA.
34 34
35/* This gives us the page size and the size of the allocation unit on NT. */ 35/* This gives us the page size and the size of the allocation unit on NT. */
36SYSTEM_INFO sysinfo_cache; 36SYSTEM_INFO sysinfo_cache;
37
38/* This gives us version, build, and platform identification. */
39OSVERSIONINFO osinfo_cache;
40
37unsigned long syspage_mask = 0; 41unsigned long syspage_mask = 0;
38 42
39/* These are defined to get Emacs to compile, but are not used. */ 43/* These are defined to get Emacs to compile, but are not used. */
@@ -75,6 +79,10 @@ cache_system_info (void)
75 /* Cache page size, allocation unit, processor type, etc. */ 79 /* Cache page size, allocation unit, processor type, etc. */
76 GetSystemInfo (&sysinfo_cache); 80 GetSystemInfo (&sysinfo_cache);
77 syspage_mask = sysinfo_cache.dwPageSize - 1; 81 syspage_mask = sysinfo_cache.dwPageSize - 1;
82
83 /* Cache os info. */
84 osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
85 GetVersionEx (&osinfo_cache);
78} 86}
79 87
80/* Emulate getpagesize. */ 88/* Emulate getpagesize. */