Mercurial > hg > xmms-sid
changeset 218:57231fe14369
Minor fixes
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Dec 2004 11:23:02 +0000 |
parents | c1a5b5cf2f28 |
children | d18bf68d7bd9 |
files | src/xs_support.c src/xs_support.h |
diffstat | 2 files changed, 19 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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 <string.h> +#else +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif +#endif + +#ifdef HAVE_MEMORY_H +#include <memory.h> +#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