Mercurial > pidgin.yaz
diff finch/libgnt/gntinternal.h @ 29220:88d889b54df4
Fix building finch & libgnt using older gcc or non-gcc compilers that do
not understand G_GNUC_NULL_TERMINATED
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 31 Dec 2009 17:33:35 +0000 |
parents | a18f421696dc |
children |
line wrap: on
line diff
--- a/finch/libgnt/gntinternal.h Thu Dec 31 14:53:58 2009 +0000 +++ b/finch/libgnt/gntinternal.h Thu Dec 31 17:33:35 2009 +0000 @@ -32,6 +32,14 @@ # define gnt_warning g_warning #endif +#ifndef G_GNUC_NULL_TERMINATED +# if defined(__GNUC__) && __GNUC__ >= 4 +# define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__)) +# else +# define G_GNUC_NULL_TERMINATED +# endif +#endif + extern int gnt_need_conversation_to_locale; extern const char *C_(const char *x);