1 |
/* Convenience header for conditional use of GNU <libintl.h>. |
/* Convenience header for conditional use of GNU <libintl.h>. |
2 |
Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. |
Copyright (C) 1995-1998, 2000-2002, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify it |
This program is free software; you can redistribute it and/or modify it |
5 |
under the terms of the GNU Library General Public License as published |
under the terms of the GNU Library General Public License as published |
37 |
# include <locale.h> |
# include <locale.h> |
38 |
#endif |
#endif |
39 |
|
|
40 |
|
/* Many header files from the libstdc++ coming with g++ 3.3 or newer include |
41 |
|
<libintl.h>, which chokes if dcgettext is defined as a macro. So include |
42 |
|
it now, to make later inclusions of <libintl.h> a NOP. */ |
43 |
|
#if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) |
44 |
|
# include <cstdlib> |
45 |
|
# if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H |
46 |
|
# include <libintl.h> |
47 |
|
# endif |
48 |
|
#endif |
49 |
|
|
50 |
/* Disabled NLS. |
/* Disabled NLS. |
51 |
The casts to 'const char *' serve the purpose of producing warnings |
The casts to 'const char *' serve the purpose of producing warnings |
52 |
for invalid uses of the value returned from these functions. |
for invalid uses of the value returned from these functions. |