Use G_BEGIN_DECLS and G_END_DECLS.
[glib.git] / glibintl.h
blobc7a1b6acce7a41e03d04dce313c21b5a5ddc5100
1 #ifndef __GLIBINTL_H__
2 #define __GLIBINTL_H__
4 #include "config.h"
6 #ifdef ENABLE_NLS
8 gchar *_glib_gettext (const gchar *str);
10 #include <libintl.h>
11 #define _(String) _glib_gettext(String)
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
28 #endif /* __GLIBINTL_H__ */