fix illegal identifiers in multiple inclusion guards
[x262.git] / gtk / x264_gtk_i18n.h
1 #ifndef X264_GTK_I18N_H
2 #define X264_GTK_I18N_H
3
4
5 #include <libintl.h>
6
7
8 #define _(X) gettext(X)
9 #define GETTEXT_DOMAIN "x264_gtk"
10
11 #ifdef X264_GTK_PRIVATE_H
12 /* x264_path must be known for this to work */
13 #  define BIND_X264_TEXTDOMAIN()                        \
14   gchar* _tmp = x264_gtk_path("locale");                    \
15   bindtextdomain(GETTEXT_DOMAIN, _tmp);                 \
16   g_free(_tmp);                                         \
17   bind_textdomain_codeset (GETTEXT_DOMAIN, "UTF-8");    \
18   textdomain(GETTEXT_DOMAIN)
19 #else
20 #  define BIND_X264_TEXTDOMAIN() you_must_include_x64_gtk_private_h_first
21 #endif
22
23
24 #endif /* X264_GTK_I18N_H */