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 | a036a7907c9ec9972c7c44c4a71a7986eb060c29 (patch) | |
tree | 5541dc8fde31acebdee811ee577ed90cc16e429b /src/w32heap.c | |
parent | a9c7603b378ea4198ec9978d07d44555eef25c16 (diff) | |
download | emacs-a036a7907c9ec9972c7c44c4a71a7986eb060c29.tar.gz |
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 38f7ffe0534..69144b25038 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. */ |