gntinternal.h
1 /*
2  * GNT - The GLib Ncurses Toolkit
3  *
4  * GNT is the legal property of its developers, whose names are too numerous
5  * to list here. Please refer to the COPYRIGHT file distributed with this
6  * source distribution.
7  *
8  * This library is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21  */
22 #include <glib.h>
23 #undef G_LOG_DOMAIN
24 #define G_LOG_DOMAIN "Gnt"
25 
26 #ifdef __GNUC__
27 # ifndef GNT_LOG_DOMAIN
28 # define GNT_LOG_DOMAIN ""
29 # endif
30 # define gnt_warning(format, args...) g_warning("(%s) %s: " format, GNT_LOG_DOMAIN, __PRETTY_FUNCTION__, args)
31 #else /* __GNUC__ */
32 # define gnt_warning g_warning
33 #endif
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 
43 extern int gnt_need_conversation_to_locale;
44 extern const char *C_(const char *x);
45