summaryrefslogtreecommitdiff
path: root/src/w32common.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-01-29 13:52:31 +0200
committerEli Zaretskii <eliz@gnu.org>2021-01-29 13:52:31 +0200
commit75eb2d0e850352bef1afe052315de63817b2070b (patch)
tree457cc97b1f2234c20e7b8cf6b80e49718b596297 /src/w32common.h
parent83591e1aec86530e0d293df3078760838f37679a (diff)
downloademacs-75eb2d0e850352bef1afe052315de63817b2070b.tar.gz
Support 'operating-system-release' on MS-Windows
* src/w32fns.c (w32_version_string) [WINDOWSNT]: New function. * src/w32common.h (w32_version_string) [WINDOWSNT]: Add prototype. * src/editfns.c (init_editfns) [WINDOWSNT]: Produce a non-nil string with the OS version.
Diffstat (limited to 'src/w32common.h')
-rw-r--r--src/w32common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32common.h b/src/w32common.h
index 94bb457e59d..714a2386a68 100644
--- a/src/w32common.h
+++ b/src/w32common.h
@@ -50,6 +50,11 @@ extern int os_subtype;
/* Cache system info, e.g., the NT page size. */
extern void cache_system_info (void);
+#ifdef WINDOWSNT
+/* Return a static buffer with the MS-Windows version string. */
+extern char * w32_version_string (void);
+#endif
+
typedef void (* VOIDFNPTR) (void);
/* Load a function address from a DLL. Cast the result via VOIDFNPTR