aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo_util.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-24 15:29:48 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-24 15:29:48 +0200
commitc8791f25459aeb32f770c46bd3a3613c9fd2d0e2 (patch)
tree6fb660cf39c58f3d880d4db7466391fdff169811 /protocols/yahoo/yahoo_util.h
parent938c30512f4dac4f084fd6bb8b7f41655de9bce4 (diff)
parentc495217e7c02c908d831645b033cf115ccdc3d6d (diff)
Merging libyahoo2 fixes. Now completely up-to-date with libyahoo2 svn
again, should try to keep it up a little bit better and submit my fixes upstream. This also adds code for Yahoo! file transfers but BitlBee isn't using it yet. (It doesn't seem to support flow control which makes this complicated.)
Diffstat (limited to 'protocols/yahoo/yahoo_util.h')
-rw-r--r--protocols/yahoo/yahoo_util.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/protocols/yahoo/yahoo_util.h b/protocols/yahoo/yahoo_util.h
index 0046fe16..8cb721c1 100644
--- a/protocols/yahoo/yahoo_util.h
+++ b/protocols/yahoo/yahoo_util.h
@@ -60,17 +60,19 @@
# define y_new0(type, n) (type *)calloc((n), sizeof(type))
# define y_renew(type, mem, n) (type *)realloc(mem, n)
-void * y_memdup(const void * addr, int n);
-char ** y_strsplit(char * str, char * sep, int nelem);
-void y_strfreev(char ** vector);
+void *y_memdup(const void *addr, int n);
+char **y_strsplit(char *str, char *sep, int nelem);
+void y_strfreev(char **vector);
-int strncasecmp(const char * s1, const char * s2, size_t n);
-int strcasecmp(const char * s1, const char * s2);
+#ifndef _WIN32
+int strncasecmp(const char *s1, const char *s2, size_t n);
+int strcasecmp(const char *s1, const char *s2);
-char * strdup(const char *s);
+char *strdup(const char *s);
int snprintf(char *str, size_t size, const char *format, ...);
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
+#endif
#endif
@@ -94,9 +96,9 @@ int vsnprintf(char *str, size_t size, const char *format, va_list ap);
* The following three functions return newly allocated memory.
* You must free it yourself
*/
-char * y_string_append(char * str, char * append);
-char * y_str_to_utf8(const char * in);
-char * y_utf8_to_str(const char * in);
+char *y_string_append(char *str, char *append);
+char *y_str_to_utf8(const char *in);
+char *y_utf8_to_str(const char *in);
#endif