diff src/xs_support.h @ 218:57231fe14369

Minor fixes
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 15 Dec 2004 11:23:02 +0000
parents 575686094eb1
children 858c09f59011
line wrap: on
line diff
--- 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