diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/compat.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index c709688b4..9a9fa5bd5 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2009-08-25 Werner Koch <[email protected]> + + * compat.h: Add xstrconcat. + 2009-08-11 David Shaw <[email protected]> * util.h: Add string_to_utf8() from GPA. diff --git a/include/compat.h b/include/compat.h index 5ed139678..686a9c9db 100644 --- a/include/compat.h +++ b/include/compat.h @@ -15,4 +15,11 @@ int ascii_strncasecmp( const char *a, const char *b, size_t n); char *strsep (char **stringp, const char *delim); #endif +#if __GNUC__ >= 4 +char *xstrconcat (const char *s1, ...) __attribute__ ((sentinel(0))); +#else +char *xstrconcat (const char *s1, ...); +#endif + + #endif /* !_COMPAT_H_ */ |