git://git.jankratochvil.net
/
mdsms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2316b34
)
'gettext' retval retyped to 'const char *' to solve missing 'gettext' protype
author
short
<>
Thu, 19 Apr 2001 17:38:44 +0000
(17:38 +0000)
committer
short
<>
Thu, 19 Apr 2001 17:38:44 +0000
(17:38 +0000)
acconfig.h
patch
|
blob
|
history
diff --git
a/acconfig.h
b/acconfig.h
index
8134a13
..
ac1bcef
100644
(file)
--- a/
acconfig.h
+++ b/
acconfig.h
@@
-216,9
+216,10
@@
extern char *sys_errlist[];
#ifdef HAVE_LIBINTL_H
# include <libintl.h>
#endif /* HAVE_LIBINTL_H */
#ifdef HAVE_LIBINTL_H
# include <libintl.h>
#endif /* HAVE_LIBINTL_H */
-# define _(String) gettext (String)
+/* 'gettext()' may not be declared here and it will default to return 'int'! */
+# define _(String) ((const char *)gettext (String))
# ifdef gettext_noop
# ifdef gettext_noop
-# define N_(String)
gettext_noop (String
)
+# define N_(String)
((const char *)gettext_noop (String)
)
# else
# define N_(String) (String)
# endif
# else
# define N_(String) (String)
# endif