comparison src/internal.h @ 9999:5d9c991549cd

[gaim-migrate @ 10913] Cleanup on isle 7 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Sep 2004 22:06:06 +0000
parents d72a23b2bfb5
children 70a82a701aad
comparison
equal deleted inserted replaced
9998:887ade3fabf0 9999:5d9c991549cd
27 27
28 #ifdef HAVE_CONFIG_H 28 #ifdef HAVE_CONFIG_H
29 # include <config.h> 29 # include <config.h>
30 #endif 30 #endif
31 31
32 /*
33 * If we're using NLS, make sure gettext works. If not, then define
34 * dummy macros in place of the normal gettext macros.
35 *
36 * Also, the perl XS config.h file sometimes defines _ So we need to
37 * make sure _ isn't already defined before trying to define it.
38 *
39 * The Singular/Plural/Number ngettext dummy definition below was
40 * taken from an email to the texinfo mailing list by Manuel Guerrero.
41 * Thank you Manuel, and thank you Alex's good friend Google.
42 */
32 #ifdef ENABLE_NLS 43 #ifdef ENABLE_NLS
33 # include <locale.h> 44 # include <locale.h>
34 # include <libintl.h> 45 # include <libintl.h>
35 # define _(x) gettext(x) 46 # define _(x) gettext(x)
36 # ifdef gettext_noop 47 # ifdef gettext_noop
39 # define N_(String) (String) 50 # define N_(String) (String)
40 # endif 51 # endif
41 #else 52 #else
42 # include <locale.h> 53 # include <locale.h>
43 # define N_(String) (String) 54 # define N_(String) (String)
44 # define _(x) (x) 55 # ifndef _
56 # define _(x) (x)
57 # endif
45 # define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural)) 58 # define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural))
46 #endif 59 #endif
47 /*
48 * The Singular/Plural/Number ngettext definition above was taken
49 * from an email to the texinfo mailing list by Manuel Guerrero.
50 * Thank you Manuel, and thank you Alex's good friend Google.
51 */
52 60
53 #ifdef HAVE_ENDIAN_H 61 #ifdef HAVE_ENDIAN_H
54 # include <endian.h> 62 # include <endian.h>
55 #endif 63 #endif
56 64