1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-31 20:02:42 +00:00

(w32_build_number): New variable.

(cache_system_info): Set it.
This commit is contained in:
Andrew Innes 2000-11-05 21:39:32 +00:00
parent 0ae88b4d46
commit 39f1f65267

View File

@ -47,6 +47,7 @@ int etext;
/* The major and minor versions of NT. */
int w32_major_version;
int w32_minor_version;
int w32_build_number;
/* Distinguish between Windows NT and Windows 95. */
int os_subtype;
@ -83,6 +84,10 @@ cache_system_info (void)
/* Cache os info. */
osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
GetVersionEx (&osinfo_cache);
w32_build_number = osinfo_cache.dwBuildNumber;
if (os_subtype == OS_WIN95)
w32_build_number &= 0xffff;
}
/* Emulate getpagesize. */