comparison finch/libgnt/gntinternal.h @ 28836: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
comparison
equal deleted inserted replaced
28835:8defc6454a9f 28836:88d889b54df4
30 # define gnt_warning(format, args...) g_warning("(%s) %s: " format, GNT_LOG_DOMAIN, __PRETTY_FUNCTION__, args) 30 # define gnt_warning(format, args...) g_warning("(%s) %s: " format, GNT_LOG_DOMAIN, __PRETTY_FUNCTION__, args)
31 #else /* __GNUC__ */ 31 #else /* __GNUC__ */
32 # define gnt_warning g_warning 32 # define gnt_warning g_warning
33 #endif 33 #endif
34 34
35 #ifndef G_GNUC_NULL_TERMINATED
36 # if defined(__GNUC__) && __GNUC__ >= 4
37 # define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
38 # else
39 # define G_GNUC_NULL_TERMINATED
40 # endif
41 #endif
42
35 extern int gnt_need_conversation_to_locale; 43 extern int gnt_need_conversation_to_locale;
36 extern const char *C_(const char *x); 44 extern const char *C_(const char *x);
37 45