diff options
author | Geoff Voelker <voelker@cs.washington.edu> | 1999-06-24 22:05:35 +0000 |
---|---|---|
committer | Geoff Voelker <voelker@cs.washington.edu> | 1999-06-24 22:05:35 +0000 |
commit | b9cad9c16eb54ad819137af4f7e44489f99a4d7b (patch) | |
tree | 76bbc191b5ea531ab1e93e49acae13892952d22c /src/w32heap.c | |
parent | c5247da2674c0dfb9fc4d31f1241cc3713bfada3 (diff) |
w32heap.c (osinfo_cache): New variable.
(cache_system_info): Initialize osinfo_cache.
Diffstat (limited to 'src/w32heap.c')
-rw-r--r-- | src/w32heap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/w32heap.c b/src/w32heap.c index 38f7ffe053..69144b2503 100644 --- a/src/w32heap.c +++ b/src/w32heap.c @@ -34,6 +34,10 @@ Boston, MA 02111-1307, USA. /* This gives us the page size and the size of the allocation unit on NT. */ SYSTEM_INFO sysinfo_cache; + +/* This gives us version, build, and platform identification. */ +OSVERSIONINFO osinfo_cache; + unsigned long syspage_mask = 0; /* These are defined to get Emacs to compile, but are not used. */ @@ -75,6 +79,10 @@ cache_system_info (void) /* Cache page size, allocation unit, processor type, etc. */ GetSystemInfo (&sysinfo_cache); syspage_mask = sysinfo_cache.dwPageSize - 1; + + /* Cache os info. */ + osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); + GetVersionEx (&osinfo_cache); } /* Emulate getpagesize. */ |