changeset 24886:fb9574318fa0

w32heap.c (osinfo_cache): New variable. (cache_system_info): Initialize osinfo_cache.
author Geoff Voelker <voelker@cs.washington.edu>
date Thu, 24 Jun 1999 22:05:35 +0000
parents 5f1b1f5fd7c8
children c440aa9c1485
files src/w32heap.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.  */