Cosmetic: warnings fixed when 'gettext' returns 'const' value
[mdsms.git] / acconfig.h
index 890db9d..ac1bcef 100644 (file)
 #undef HAVE_CBAUDEX
 #undef CBAUDEX
 
+/* CRTSCTS define, may be missing. */
+#undef HAVE_CRTSCTS
+#undef CRTSCTS
+
 /* FD_SETSIZE define, may be missing. */
 #undef HAVE_FD_SETSIZE
 
@@ -212,9 +216,10 @@ extern char *sys_errlist[];
 #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
-#        define N_(String) gettext_noop (String)
+#        define N_(String) ((const char *)gettext_noop (String))
 #    else
 #        define N_(String) (String)
 #    endif