1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

C++ comaptibility

This commit is contained in:
Witold Filipczyk 2016-04-24 17:23:58 +02:00
parent b550f2eb2c
commit 3212ee4e54
4 changed files with 9 additions and 12 deletions

View File

@ -30,7 +30,7 @@
#include "util/string.h"
/* Contains the default location of the message catalogs. */
extern const unsigned char _nl_default_dirname__[];
extern const unsigned char *_nl_default_dirname__;
/* List with bindings of specific domains. */
extern struct binding *_nl_domain_bindings__;

View File

@ -187,13 +187,17 @@ transcmp(const void *p1, const void *p2)
/* Name of the default domain used for gettext(3) prior any call to
textdomain(3). The default value for this is "messages". */
const unsigned char _nl_default_default_domain__[] = "messages";
const char _AAA_nl_default_default_domain__[] = "messages";
const unsigned char *_nl_default_default_domain__ = (const unsigned char *)_AAA_nl_default_default_domain__;
/* Value used as the default domain for gettext(3). */
const unsigned char *_nl_current_default_domain__ = _nl_default_default_domain__;
const char *_nl_current_default_domain__ = _nl_default_default_domain__;
/* Contains the default location of the message catalogs. */
const unsigned char _nl_default_dirname__[] = LOCALEDIR;
const char _AAA_nl_default_dirname__[] = LOCALEDIR;
const unsigned char *_nl_default_dirname__ = (const unsigned char *)_AAA_nl_default_dirname__;
/* Contains application-specific LANGUAGE variation, taking precedence to the
* $LANGUAGE environment variable. */

View File

@ -40,10 +40,6 @@
#define gettext gettext
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* Look up MSGID in the current default message catalog for the current
LC_MESSAGES locale. If not found, returns MSGID itself (the default
text). */
@ -107,7 +103,4 @@ extern "C" {
#endif /* Optimizing. */
#ifdef __cplusplus
}
#endif
#endif /* libintl.h */

View File

@ -29,7 +29,7 @@
#include "util/string.h"
/* Name of the default text domain. */
extern const unsigned char _nl_default_default_domain__[];
extern const unsigned char *_nl_default_default_domain__;
/* Default text domain in which entries for gettext(3) are to be found. */
extern const unsigned char *_nl_current_default_domain__;