Mercurial > pidgin.yaz
comparison libpurple/win32/libc_interface.c @ 29798:1d712c4f9b6c
Win32 build updates
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 18 Feb 2010 23:32:18 +0000 |
parents | 39716f7d2c93 |
children | 4dc99186a03a |
comparison
equal
deleted
inserted
replaced
29797:66a15a093e61 | 29798:1d712c4f9b6c |
---|---|
31 #include "config.h" | 31 #include "config.h" |
32 #include "debug.h" | 32 #include "debug.h" |
33 #include "libc_internal.h" | 33 #include "libc_internal.h" |
34 #include <glib/gstdio.h> | 34 #include <glib/gstdio.h> |
35 | 35 |
36 /** This is redefined here because we can't include internal.h */ | |
36 #ifdef ENABLE_NLS | 37 #ifdef ENABLE_NLS |
37 # include <locale.h> | 38 # include <locale.h> |
38 # include <libintl.h> | 39 # include <libintl.h> |
39 # define _(String) ((const char *)dgettext(PACKAGE, String)) | 40 # define _(String) ((const char *)dgettext(PACKAGE, String)) |
40 # ifdef gettext_noop | 41 # ifdef gettext_noop |
1045 | 1046 |
1046 purple_debug_warning("wpurple", "could not find a match for Windows timezone \"%s\"\n", tzname); | 1047 purple_debug_warning("wpurple", "could not find a match for Windows timezone \"%s\"\n", tzname); |
1047 return ""; | 1048 return ""; |
1048 } | 1049 } |
1049 | 1050 |
1051 int wpurple_g_access (const gchar *filename, int mode); | |
1050 /** | 1052 /** |
1051 * g_access: | 1053 * @deprecated - remove for 3.0.0 |
1052 * @filename: a pathname in the GLib file name encoding (UTF-8 on Windows) | |
1053 * @mode: as in access() | |
1054 * | |
1055 * A wrapper for the POSIX access() function. This function is used to | |
1056 * test a pathname for one or several of read, write or execute | |
1057 * permissions, or just existence. On Windows, the underlying access() | |
1058 * function in the C library only checks the READONLY attribute, and | |
1059 * does not look at the ACL at all. Software that needs to handle file | |
1060 * permissions on Windows more exactly should use the Win32 API. | |
1061 * | |
1062 * See the C library manual for more details about access(). | |
1063 * | |
1064 * Returns: zero if the pathname refers to an existing file system | |
1065 * object that has all the tested permissions, or -1 otherwise or on | |
1066 * error. | |
1067 * | |
1068 * Since: 2.8 | |
1069 */ | 1054 */ |
1070 int | 1055 int |
1071 wpurple_g_access (const gchar *filename, | 1056 wpurple_g_access (const gchar *filename, int mode) |
1072 int mode) | |
1073 { | 1057 { |
1074 return g_access(filename, mode); | 1058 return g_access(filename, mode); |
1075 } | 1059 } |
1076 | 1060 |
1077 | 1061 |