summaryrefslogtreecommitdiff
path: root/glib/gwin32.h
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2011-10-17 14:53:58 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2011-10-17 23:54:05 +0800
commitb25177fc4f1aaa1daf27791982ecc5e001845d2c (patch)
tree291577ce5d5fb035985a789022410a4d8ae99058 /glib/gwin32.h
parente5fd0f5df6043887a985f922ee4a35b73585ca3e (diff)
downloadglib-b25177fc4f1aaa1daf27791982ecc5e001845d2c.tar.gz
GLib: Add forgotten includes and build fixes
-gcharset.c, genviron.c, gunicollate.c: Some headers were missed in those files that triggered C4013 warnings/errors (aka. implicit declaration of ... in GCC). Make up for them here. -gwin32.h: Only define g_win32_get_package_installation_directory/ g_win32_get_package_installation_subdirectory as macros (alias of g_win32_get_package_installation_directory_utf8/ g_win32_get_package_installation_subdirectory_utf8) on Win64 (x64) as g_win32_get_package_installation_directory/ g_win32_get_package_installation_subdirectory have seperate existing implmentations for Win32-this is a long-standing problem but was covered- up by G_DISABLE_DEPRECATED, which we are stopping to use as of 2.31.0.
Diffstat (limited to 'glib/gwin32.h')
-rw-r--r--glib/gwin32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/glib/gwin32.h b/glib/gwin32.h
index 2d278d2bc..b0fb7c04b 100644
--- a/glib/gwin32.h
+++ b/glib/gwin32.h
@@ -86,9 +86,11 @@ gchar* g_win32_error_message (gint error);
#ifndef G_DISABLE_DEPRECATED
#ifndef __GTK_DOC_IGNORE__
+#ifdef _WIN64
#define g_win32_get_package_installation_directory g_win32_get_package_installation_directory_utf8
#define g_win32_get_package_installation_subdirectory g_win32_get_package_installation_subdirectory_utf8
#endif
+#endif
gchar* g_win32_get_package_installation_directory (const gchar *package,
const gchar *dll_name);