123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- #ifndef _LIBINTL_H
- #define _LIBINTL_H 1
- #ifdef LIBINTL_STATIC
- #define LIBINTL_DLL_EXPORTED
- #else
- #ifdef BUILDING_LIBINTL
- #define LIBINTL_DLL_EXPORTED __declspec(dllexport)
- #else
- #define LIBINTL_DLL_EXPORTED __declspec(dllimport)
- #endif
- #endif
- #include <locale.h>
- #if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun))
- # define LC_MESSAGES 1729
- #endif
- #define __USE_GNU_GETTEXT 1
- #define __GNU_GETTEXT_SUPPORTED_REVISION(major) \
- ((major) == 0 || (major) == 1 ? 1 : -1)
- #ifdef __DJGPP__
- # undef gettext
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS)
- # if __GNUC__ >= 2 && !defined __APPLE_CC__ && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus)
- # define _INTL_REDIRECT_ASM
- # else
- # ifdef __cplusplus
- # define _INTL_REDIRECT_INLINE
- # else
- # define _INTL_REDIRECT_MACROS
- # endif
- # endif
- #endif
- #ifdef _INTL_REDIRECT_ASM
- # define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname))
- # define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring
- # define _INTL_STRINGIFY(prefix) #prefix
- #else
- # define _INTL_ASM(cname)
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_gettext (const char *__msgid);
- static inline char *gettext (const char *__msgid)
- {
- return libintl_gettext (__msgid);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define gettext libintl_gettext
- #endif
- extern LIBINTL_DLL_EXPORTED char *gettext (const char *__msgid)
- _INTL_ASM (libintl_gettext);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_dgettext (const char *__domainname, const char *__msgid);
- static inline char *dgettext (const char *__domainname, const char *__msgid)
- {
- return libintl_dgettext (__domainname, __msgid);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define dgettext libintl_dgettext
- #endif
- extern LIBINTL_DLL_EXPORTED char *dgettext (const char *__domainname, const char *__msgid)
- _INTL_ASM (libintl_dgettext);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_dcgettext (const char *__domainname, const char *__msgid,
- int __category);
- static inline char *dcgettext (const char *__domainname, const char *__msgid,
- int __category)
- {
- return libintl_dcgettext (__domainname, __msgid, __category);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define dcgettext libintl_dcgettext
- #endif
- extern LIBINTL_DLL_EXPORTED char *dcgettext (const char *__domainname, const char *__msgid,
- int __category)
- _INTL_ASM (libintl_dcgettext);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_ngettext (const char *__msgid1, const char *__msgid2,
- unsigned long int __n);
- static inline char *ngettext (const char *__msgid1, const char *__msgid2,
- unsigned long int __n)
- {
- return libintl_ngettext (__msgid1, __msgid2, __n);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define ngettext libintl_ngettext
- #endif
- extern LIBINTL_DLL_EXPORTED char *ngettext (const char *__msgid1, const char *__msgid2,
- unsigned long int __n)
- _INTL_ASM (libintl_ngettext);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_dngettext (const char *__domainname, const char *__msgid1,
- const char *__msgid2, unsigned long int __n);
- static inline char *dngettext (const char *__domainname, const char *__msgid1,
- const char *__msgid2, unsigned long int __n)
- {
- return libintl_dngettext (__domainname, __msgid1, __msgid2, __n);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define dngettext libintl_dngettext
- #endif
- extern LIBINTL_DLL_EXPORTED char *dngettext (const char *__domainname,
- const char *__msgid1, const char *__msgid2,
- unsigned long int __n)
- _INTL_ASM (libintl_dngettext);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_dcngettext (const char *__domainname,
- const char *__msgid1, const char *__msgid2,
- unsigned long int __n, int __category);
- static inline char *dcngettext (const char *__domainname,
- const char *__msgid1, const char *__msgid2,
- unsigned long int __n, int __category)
- {
- return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define dcngettext libintl_dcngettext
- #endif
- extern LIBINTL_DLL_EXPORTED char *dcngettext (const char *__domainname,
- const char *__msgid1, const char *__msgid2,
- unsigned long int __n, int __category)
- _INTL_ASM (libintl_dcngettext);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_textdomain (const char *__domainname);
- static inline char *textdomain (const char *__domainname)
- {
- return libintl_textdomain (__domainname);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define textdomain libintl_textdomain
- #endif
- extern LIBINTL_DLL_EXPORTED char *textdomain (const char *__domainname)
- _INTL_ASM (libintl_textdomain);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_bindtextdomain (const char *__domainname,
- const char *__dirname);
- static inline char *bindtextdomain (const char *__domainname,
- const char *__dirname)
- {
- return libintl_bindtextdomain (__domainname, __dirname);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define bindtextdomain libintl_bindtextdomain
- #endif
- extern LIBINTL_DLL_EXPORTED char *bindtextdomain (const char *__domainname, const char *__dirname)
- _INTL_ASM (libintl_bindtextdomain);
- #endif
- #ifdef _INTL_REDIRECT_INLINE
- extern LIBINTL_DLL_EXPORTED char *libintl_bind_textdomain_codeset (const char *__domainname,
- const char *__codeset);
- static inline char *bind_textdomain_codeset (const char *__domainname,
- const char *__codeset)
- {
- return libintl_bind_textdomain_codeset (__domainname, __codeset);
- }
- #else
- #ifdef _INTL_REDIRECT_MACROS
- # define bind_textdomain_codeset libintl_bind_textdomain_codeset
- #endif
- extern LIBINTL_DLL_EXPORTED char *bind_textdomain_codeset (const char *__domainname,
- const char *__codeset)
- _INTL_ASM (libintl_bind_textdomain_codeset);
- #endif
- #if 0
- #include <stdio.h>
- #include <stddef.h>
- #if __STDC__ || defined __cplusplus || defined _MSC_VER
- # include <stdarg.h>
- #else
- # include <varargs.h>
- #endif
- #undef fprintf
- #define fprintf libintl_fprintf
- extern LIBINTL_DLL_EXPORTED int fprintf (FILE *, const char *, ...);
- #undef vfprintf
- #define vfprintf libintl_vfprintf
- extern LIBINTL_DLL_EXPORTED int vfprintf (FILE *, const char *, va_list);
- #undef printf
- #define printf libintl_printf
- extern LIBINTL_DLL_EXPORTED int printf (const char *, ...);
- #undef vprintf
- #define vprintf libintl_vprintf
- extern LIBINTL_DLL_EXPORTED int vprintf (const char *, va_list);
- #undef sprintf
- #define sprintf libintl_sprintf
- extern LIBINTL_DLL_EXPORTED int sprintf (char *, const char *, ...);
- #undef vsprintf
- #define vsprintf libintl_vsprintf
- extern LIBINTL_DLL_EXPORTED int vsprintf (char *, const char *, va_list);
- #if 0
- #undef snprintf
- #define snprintf libintl_snprintf
- extern LIBINTL_DLL_EXPORTED int snprintf (char *, size_t, const char *, ...);
- #undef vsnprintf
- #define vsnprintf libintl_vsnprintf
- extern LIBINTL_DLL_EXPORTED int vsnprintf (char *, size_t, const char *, va_list);
- #endif
- #if 0
- #undef asprintf
- #define asprintf libintl_asprintf
- extern LIBINTL_DLL_EXPORTED int asprintf (char **, const char *, ...);
- #undef vasprintf
- #define vasprintf libintl_vasprintf
- extern LIBINTL_DLL_EXPORTED int vasprintf (char **, const char *, va_list);
- #endif
- #if 1
- #undef fwprintf
- #define fwprintf libintl_fwprintf
- extern LIBINTL_DLL_EXPORTED int fwprintf (FILE *, const wchar_t *, ...);
- #undef vfwprintf
- #define vfwprintf libintl_vfwprintf
- extern LIBINTL_DLL_EXPORTED int vfwprintf (FILE *, const wchar_t *, va_list);
- #undef wprintf
- #define wprintf libintl_wprintf
- extern LIBINTL_DLL_EXPORTED int wprintf (const wchar_t *, ...);
- #undef vwprintf
- #define vwprintf libintl_vwprintf
- extern LIBINTL_DLL_EXPORTED int vwprintf (const wchar_t *, va_list);
- #undef swprintf
- #define swprintf libintl_swprintf
- extern LIBINTL_DLL_EXPORTED int swprintf (wchar_t *, size_t, const wchar_t *, ...);
- #undef vswprintf
- #define vswprintf libintl_vswprintf
- extern LIBINTL_DLL_EXPORTED int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
- #endif
- #endif
- #define libintl_set_relocation_prefix libintl_set_relocation_prefix
- extern LIBINTL_DLL_EXPORTED void
- libintl_set_relocation_prefix (const char *orig_prefix,
- const char *curr_prefix);
- #ifdef __cplusplus
- }
- #endif
- #endif
|