diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-06 22:17:46 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-06 22:17:51 +1100 |
commit | a4c321e492748db0a7e38240699ba420ba88e01c (patch) | |
tree | d8179a7c86037de5b7d0cbca0b5131a647621e70 /examples | |
parent | 91790ef965553fd6d76e1f51b55dc4de3b54ad4b (diff) | |
download | flac-a4c321e492748db0a7e38240699ba420ba88e01c.tar.gz |
Large patch from Ben Allison fixing the MSVC build.
Patch tweaked a little to fix Linux build and clean up minor problems.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cpp/decode/file/main.cpp | 4 | ||||
-rw-r--r-- | examples/cpp/encode/file/main.cpp | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/examples/cpp/decode/file/main.cpp b/examples/cpp/decode/file/main.cpp index b991d681..3ebe89a2 100644 --- a/examples/cpp/decode/file/main.cpp +++ b/examples/cpp/decode/file/main.cpp @@ -31,10 +31,8 @@ #include <stdio.h> #include <stdlib.h> -#define __STDC_FORMAT_MACROS -#include <inttypes.h> - #include "FLAC++/decoder.h" +#include "share/compat.h" static FLAC__uint64 total_samples = 0; static unsigned sample_rate = 0; diff --git a/examples/cpp/encode/file/main.cpp b/examples/cpp/encode/file/main.cpp index a83de051..8661c877 100644 --- a/examples/cpp/encode/file/main.cpp +++ b/examples/cpp/encode/file/main.cpp @@ -32,11 +32,9 @@ #include <stdlib.h> #include <string.h> -#define __STDC_FORMAT_MACROS -#include <inttypes.h> - #include "FLAC++/metadata.h" #include "FLAC++/encoder.h" +#include "share/compat.h" #include <cstring> |