The following patch corrects some function attributes. (#61780)
[platform/upstream/glib.git] / glib / glibintl.h
1 #ifndef __GLIBINTL_H__
2 #define __GLIBINTL_H__
3
4 #include "config.h"
5
6 #ifdef ENABLE_NLS
7
8 gchar *_glib_gettext (const gchar *str) G_GNUC_FORMAT (1);
9
10 #include <libintl.h>
11 #define _(String) _glib_gettext(String)
12
13 #ifdef gettext_noop
14 #define N_(String) gettext_noop(String)
15 #else
16 #define N_(String) (String)
17 #endif
18 #else /* NLS is disabled */
19 #define _(String) (String)
20 #define N_(String) (String)
21 #define textdomain(String) (String)
22 #define gettext(String) (String)
23 #define dgettext(Domain,String) (String)
24 #define dcgettext(Domain,String,Type) (String)
25 #define bindtextdomain(Domain,Directory) (Domain) 
26 #endif
27
28 #endif /* __GLIBINTL_H__ */