From 04e22d37316badc8b46a6e7d390ef9917faf7985 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 Feb 2015 11:02:07 +0000 Subject: Fix build. --- tools/dcpdiff.cc | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc index 30c09f87..c2a454cf 100644 --- a/tools/dcpdiff.cc +++ b/tools/dcpdiff.cc @@ -22,11 +22,19 @@ #include "common.h" #include "mxf.h" #include +#include +#include #include #include - -using namespace std; -using namespace boost; +#include + +using std::list; +using std::cerr; +using std::cout; +using std::string; +using boost::shared_ptr; +using boost::optional; +using boost::dynamic_pointer_cast; using namespace dcp; static bool verbose = false; @@ -81,7 +89,7 @@ load_dcp (boost::filesystem::path path, bool keep_going, bool ignore_missing_ass } } } - + } catch (FileError& e) { cerr << "Could not read DCP " << path.string() << "; " << e.what() << " " << e.filename() << "\n"; exit (EXIT_FAILURE); @@ -164,12 +172,12 @@ main (int argc, char* argv[]) exit (EXIT_FAILURE); } - if (!filesystem::exists (argv[optind])) { + if (!boost::filesystem::exists (argv[optind])) { cerr << argv[0] << ": DCP " << argv[optind] << " not found.\n"; exit (EXIT_FAILURE); } - if (!filesystem::exists (argv[optind + 1])) { + if (!boost::filesystem::exists (argv[optind + 1])) { cerr << argv[0] << ": DCP " << argv[optind + 1] << " not found.\n"; exit (EXIT_FAILURE); } -- cgit v1.2.3