… | |
… | |
19 | */ |
19 | */ |
20 | |
20 | |
21 | #ifndef _LIBGETTEXT_H |
21 | #ifndef _LIBGETTEXT_H |
22 | #define _LIBGETTEXT_H 1 |
22 | #define _LIBGETTEXT_H 1 |
23 | |
23 | |
|
|
24 | #if __cplusplus |
|
|
25 | # include CLOCALE |
|
|
26 | #else |
|
|
27 | # include <locale.h> |
|
|
28 | #endif |
|
|
29 | |
24 | /* NLS can be disabled through the configure --disable-nls option. */ |
30 | /* NLS can be disabled through the configure --disable-nls option. */ |
25 | #if ENABLE_NLS |
31 | #if ENABLE_NLS |
26 | |
32 | |
27 | /* Get declarations of GNU message catalog functions. */ |
33 | /* Get declarations of GNU message catalog functions. */ |
28 | # include <libintl.h> |
34 | # include <libintl.h> |
29 | # include <locale.h> |
|
|
30 | |
35 | |
31 | /* Shorthand notation */ |
36 | /* Shorthand notation */ |
32 | |
37 | |
33 | # define _(Text) gettext (Text) |
38 | # define _(Text) gettext (Text) |
34 | |
39 | |
… | |
… | |
61 | # define textdomain(Domainname) ((const char *) (Domainname)) |
66 | # define textdomain(Domainname) ((const char *) (Domainname)) |
62 | # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) |
67 | # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) |
63 | # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) |
68 | # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) |
64 | |
69 | |
65 | # define _(Text) Text |
70 | # define _(Text) Text |
66 | # define setlocale(Category, Locale) ((const char *) (Locale)) |
71 | //# define setlocale(Category, Locale) ((const char *) (Locale)) |
67 | |
72 | |
68 | #endif |
73 | #endif |
69 | |
74 | |
70 | /* A pseudo function call that serves as a marker for the automated |
75 | /* A pseudo function call that serves as a marker for the automated |
71 | extraction of messages, but does not call gettext(). The run-time |
76 | extraction of messages, but does not call gettext(). The run-time |