#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+#include <vlc_common.h>
#if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems
When compiling libc, the _ macro is predefined. */
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#define _(msgid) gettext (msgid)
+#define _(msgid) vlc_gettext (msgid)
#else
#define _(msgid) (msgid)
#endif
char *const *argv;
const char *optstring;
{
+ (void)argc;
+ (void)argv;
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
non-option ARGV-elements is empty. */
{
if (argv[optind][1] == '-')
/* --option */
- fprintf(stderr, _("%s: unrecognized option `--%s'\n"),
- argv[0], nextchar);
+ fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
+ "--", argv[0], nextchar);
else
+ {
+ char t[2] = { argv[optind][0], '\0' };
/* +option or -option */
- fprintf(stderr, _("%s: unrecognized option `%c%s'\n"),
- argv[0], argv[optind][0], nextchar);
+ fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
+ argv[0], t, nextchar);
+ }
}
nextchar = (char *) "";
optind++;