aboutsummaryrefslogtreecommitdiff
path: root/libxkbfile/src/XKBfileInt.h
diff options
context:
space:
mode:
Diffstat (limited to 'libxkbfile/src/XKBfileInt.h')
-rw-r--r--libxkbfile/src/XKBfileInt.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/libxkbfile/src/XKBfileInt.h b/libxkbfile/src/XKBfileInt.h
index 7eb81a0c0..22083fa46 100644
--- a/libxkbfile/src/XKBfileInt.h
+++ b/libxkbfile/src/XKBfileInt.h
@@ -30,6 +30,7 @@
/* $XFree86$ */
#include "XKBfile.h"
+#include <string.h>
#ifdef DEBUG
#define _XkbLibError(c,l,d) \
@@ -62,11 +63,18 @@
#endif
+#include <unistd.h>
+#ifdef _MSC_VER
+#define inline __inline
+#endif
+
_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)