From: Geoff Voelker Date: Thu, 24 Jun 1999 22:05:35 +0000 (+0000) Subject: w32heap.c (osinfo_cache): New variable. X-Git-Tag: emacs-20.4~63 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b9cad9c16eb54ad819137af4f7e44489f99a4d7b;p=emacs.git w32heap.c (osinfo_cache): New variable. (cache_system_info): Initialize osinfo_cache. --- 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. */