diff options
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/common/compat.h b/common/compat.h index 6305768..68786a7 100644 --- a/common/compat.h +++ b/common/compat.h @@ -39,8 +39,6 @@ #include <sys/types.h> -typedef enum { false, true } bool; - #if !defined(__cplusplus) && (__GNUC__ > 2) #define GNUC_PRINTF(x, y) __attribute__((__format__(__printf__, x, y))) #else @@ -175,6 +173,14 @@ typedef void * dl_module_t; #include <errno.h> #endif /* HAVE_ERRNO_H */ +#ifndef HAVE_STRNSTR + +char * strnstr (const char *s, + const char *find, + size_t slen); + +#endif /* HAVE_STRNSTR */ + #ifndef HAVE_MEMDUP void * memdup (void *data, @@ -188,4 +194,11 @@ void * memdup (void *data, typedef enum { false, true } bool; #endif +#ifndef HAVE_STRCONCAT + +char * strconcat (const char *first, + ...) GNUC_NULL_TERMINATED; + +#endif /* HAVE_STRCONCAT */ + #endif /* __COMPAT_H__ */ |