aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo_util.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-23 15:35:45 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-23 15:35:45 +0100
commitc36f73bd317dd55d7e70275a6425faa4be7bfd8c (patch)
treeabdd51dc28d2dcd20d5b5f518b41cedf4e6a07cb /protocols/yahoo/yahoo_util.h
parent938c30512f4dac4f084fd6bb8b7f41655de9bce4 (diff)
This should mostly be a no-op, merging *loads* of whitespace changes from
libyahoo2 so that I can see better what really changed.
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