flacdiff: Improve error msg output
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 10 Jan 2016 02:04:29 +0000 (13:04 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 10 Jan 2016 02:04:32 +0000 (13:04 +1100)
Patch-from: lvqcl <lvqcl.mail@gmail.com>

src/utils/flacdiff/main.cpp

index 87a3089..7f65b66 100644 (file)
@@ -210,9 +210,9 @@ int main(int argc, char *argv[])
 {
        const char *usage = "usage: flacdiff flacfile1 flacfile2\n";
 
-#ifdef FLAC__STRINGS_IN_UTF8
+#ifdef _WIN32
        if (get_utf8_argv(&argc, &argv) != 0) {
-               fprintf(stderr, "%ERROR: failed to convert command line parameters to UTF-8\n");
+               fprintf(stderr, "ERROR: failed to convert command line parameters to UTF-8\n");
                return 1;
        }
 #endif