From c73dc01b6de45612b24dc2dd34fba24d81ebf46c Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 7 Oct 2009 08:43:18 +0000 Subject: Switched to following packages: fixesproto-4.1.1 randrproto-1.3.1 libxkbfile-1.0.6 --- libxkbfile/src/XKBfileInt.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libxkbfile/src/XKBfileInt.h') diff --git a/libxkbfile/src/XKBfileInt.h b/libxkbfile/src/XKBfileInt.h index 7eb81a0c0..a99b7c821 100644 --- a/libxkbfile/src/XKBfileInt.h +++ b/libxkbfile/src/XKBfileInt.h @@ -30,6 +30,7 @@ /* $XFree86$ */ #include "XKBfile.h" +#include #ifdef DEBUG #define _XkbLibError(c,l,d) \ @@ -64,9 +65,11 @@ _XFUNCPROTOBEGIN -extern char * _XkbDupString( - char * /* old_str */ -); +static inline +char *_XkbDupString(const char *s) +{ + return s ? strdup(s) : NULL; +} #define _XkbStrCaseEqual(s1,s2) (_XkbStrCaseCmp(s1,s2)==0) -- cgit v1.2.3