# HG changeset patch # User Geoff Voelker # Date 930261935 0 # Node ID fb9574318fa07bddabb268649bb151f8cdad9772 # Parent 5f1b1f5fd7c8b7629488518510313cf3cbfbd11c w32heap.c (osinfo_cache): New variable. (cache_system_info): Initialize osinfo_cache. diff -r 5f1b1f5fd7c8 -r fb9574318fa0 src/w32heap.c --- a/src/w32heap.c Thu Jun 24 22:05:14 1999 +0000 +++ b/src/w32heap.c Thu Jun 24 22:05:35 1999 +0000 @@ -34,6 +34,10 @@ /* 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 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. */