bitmath: Finish up optimizations
[platform/upstream/flac.git] / src / metaflac / operations_shorthand_streaminfo.c
index 7b4baac..9912f7b 100644 (file)
@@ -1,5 +1,5 @@
 /* metaflac - Command-line FLAC metadata editor
- * Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008  Josh Coalson
+ * Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009  Josh Coalson
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -24,6 +24,7 @@
 #include "utils.h"
 #include "FLAC/assert.h"
 #include "FLAC/metadata.h"
+#include "share/compat.h"
 #include <string.h>
 #include "operations_shorthand.h"
 
@@ -75,11 +76,7 @@ FLAC__bool do_shorthand_operation__streaminfo(const char *filename, FLAC__bool p
                        printf("%u\n", block->data.stream_info.bits_per_sample);
                        break;
                case OP__SHOW_TOTAL_SAMPLES:
-#ifdef _MSC_VER
-                       printf("%I64u\n", block->data.stream_info.total_samples);
-#else
-                       printf("%llu\n", (unsigned long long)block->data.stream_info.total_samples);
-#endif
+                       printf("%" PRIu64 "\n", block->data.stream_info.total_samples);
                        break;
                case OP__SET_MD5SUM:
                        memcpy(block->data.stream_info.md5sum, operation->argument.streaminfo_md5.value, 16);