+2004-08-25 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gwin32.c (g_win32_get_windows_version): New
+ function. Returns the Windows version code like GetVersion(),
+ except that one can pretend to be running on Win9x by setting the
+ G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
+ debugging purposed.
+
+ * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
+ and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
+
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* configure.in: Post-release version bump.
+2004-08-25 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gwin32.c (g_win32_get_windows_version): New
+ function. Returns the Windows version code like GetVersion(),
+ except that one can pretend to be running on Win9x by setting the
+ G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
+ debugging purposed.
+
+ * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
+ and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
+
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* configure.in: Post-release version bump.
+2004-08-25 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gwin32.c (g_win32_get_windows_version): New
+ function. Returns the Windows version code like GetVersion(),
+ except that one can pretend to be running on Win9x by setting the
+ G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
+ debugging purposed.
+
+ * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
+ and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
+
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* configure.in: Post-release version bump.
+2004-08-25 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gwin32.c (g_win32_get_windows_version): New
+ function. Returns the Windows version code like GetVersion(),
+ except that one can pretend to be running on Win9x by setting the
+ G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
+ debugging purposed.
+
+ * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
+ and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
+
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* configure.in: Post-release version bump.
+2004-08-25 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gwin32.c (g_win32_get_windows_version): New
+ function. Returns the Windows version code like GetVersion(),
+ except that one can pretend to be running on Win9x by setting the
+ G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
+ debugging purposed.
+
+ * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
+ and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
+
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* configure.in: Post-release version bump.
return dirname;
}
+
+guint
+g_win32_get_windows_version (void)
+{
+ static gboolean beenhere = FALSE;
+ static guint version;
+
+ if (!beenhere)
+ {
+ if (getenv ("G_WIN32_PRETEND_WIN9X"))
+ version = 0x80000004;
+ else
+ version = GetVersion ();
+ beenhere = TRUE;
+ }
+ return version;
+}
gchar *dll_name,
gchar *subdir);
+guint g_win32_get_windows_version (void);
+
+#define G_WIN32_IS_NT_BASED() (g_win32_get_windows_version () < 0x80000000)
+#define G_WIN32_HAVE_WIDECHAR_API() (G_WIN32_IS_NT_BASED ())
+
G_END_DECLS
#endif /* G_PLATFORM_WIN32 */