mirror of
https://github.com/rkd77/elinks.git
synced 2025-05-18 00:48:57 -04:00
C++ comaptibility
This commit is contained in:
parent
b550f2eb2c
commit
3212ee4e54
@ -30,7 +30,7 @@
|
|||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
|
|
||||||
/* Contains the default location of the message catalogs. */
|
/* 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. */
|
/* List with bindings of specific domains. */
|
||||||
extern struct binding *_nl_domain_bindings__;
|
extern struct binding *_nl_domain_bindings__;
|
||||||
|
@ -187,13 +187,17 @@ transcmp(const void *p1, const void *p2)
|
|||||||
|
|
||||||
/* Name of the default domain used for gettext(3) prior any call to
|
/* Name of the default domain used for gettext(3) prior any call to
|
||||||
textdomain(3). The default value for this is "messages". */
|
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). */
|
/* 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. */
|
/* 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
|
/* Contains application-specific LANGUAGE variation, taking precedence to the
|
||||||
* $LANGUAGE environment variable. */
|
* $LANGUAGE environment variable. */
|
||||||
|
@ -40,10 +40,6 @@
|
|||||||
#define gettext gettext
|
#define gettext gettext
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Look up MSGID in the current default message catalog for the current
|
/* Look up MSGID in the current default message catalog for the current
|
||||||
LC_MESSAGES locale. If not found, returns MSGID itself (the default
|
LC_MESSAGES locale. If not found, returns MSGID itself (the default
|
||||||
text). */
|
text). */
|
||||||
@ -107,7 +103,4 @@ extern "C" {
|
|||||||
|
|
||||||
#endif /* Optimizing. */
|
#endif /* Optimizing. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif /* libintl.h */
|
#endif /* libintl.h */
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
|
|
||||||
/* Name of the default text domain. */
|
/* 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. */
|
/* Default text domain in which entries for gettext(3) are to be found. */
|
||||||
extern const unsigned char *_nl_current_default_domain__;
|
extern const unsigned char *_nl_current_default_domain__;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user