# HG changeset patch # User Matti Hamalainen # Date 1103109782 0 # Node ID 57231fe1436977d7f4a76268320f6e2834994c75 # Parent c1a5b5cf2f28b4bc08e6e70251eee5e2ae74460c Minor fixes diff -r c1a5b5cf2f28 -r 57231fe14369 src/xs_support.c --- a/src/xs_support.c Wed Dec 15 11:23:01 2004 +0000 +++ b/src/xs_support.c Wed Dec 15 11:23:02 2004 +0000 @@ -68,7 +68,7 @@ /* Concatenates a given string into string pointed by *ppResult. */ -gint th_pstrcat(t_char **ppResult, const gchar *pStr) +gint th_pstrcat(gchar **ppResult, const gchar *pStr) { /* Check the string pointers */ if (!ppResult || !pStr) return -1; diff -r c1a5b5cf2f28 -r 57231fe14369 src/xs_support.h --- a/src/xs_support.h Wed Dec 15 11:23:01 2004 +0000 +++ b/src/xs_support.h Wed Dec 15 11:23:02 2004 +0000 @@ -7,10 +7,27 @@ #include "xmms-sid.h" +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif + +#ifdef HAVE_MEMORY_H +#include +#endif + +#ifndef HAVE_SIZE_T +typedef unsigned long int size_t; +#endif + + /* * Functions */ -gchar xs_strncpy(gchar *, gchar *, size_t); +gchar *xs_strncpy(gchar *, gchar *, size_t); gint xs_pstrcpy(gchar **, const gchar *); gint xs_pstrcat(gchar **, const gchar *); gchar *xs_strrchr(gchar *, gchar); @@ -24,8 +41,6 @@ void *xs_memset(void *, int, size_t); #endif -#ifdef - #ifdef __cplusplus } #endif