summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-01 15:07:21 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-01 15:07:21 +0100
commit19818898ac4606388a4848624fa0c92c5ac4e0da (patch)
treefb7f73bd4d700ea8a578eb5490165b5325ddabac
parentca8ec410366fb8c9f554139a342b94b94d277127 (diff)
Windows build fixes.
-rw-r--r--src/asset.cc4
-rw-r--r--src/asset_map.h1
-rw-r--r--src/cpl.h1
-rw-r--r--src/picture_asset.cc6
-rw-r--r--src/sound_asset.cc6
-rw-r--r--src/xml.h1
6 files changed, 11 insertions, 8 deletions
diff --git a/src/asset.cc b/src/asset.cc
index de299d34..f8362c8b 100644
--- a/src/asset.cc
+++ b/src/asset.cc
@@ -123,8 +123,8 @@ Asset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
return notes;
}
- ifstream a (mxf_path().c_str(), ios::binary);
- ifstream b (other->mxf_path().c_str(), ios::binary);
+ ifstream a (mxf_path().string().c_str(), ios::binary);
+ ifstream b (other->mxf_path().string().c_str(), ios::binary);
int buffer_size = 65536;
char abuffer[buffer_size];
diff --git a/src/asset_map.h b/src/asset_map.h
index 34e301a5..3f51ca12 100644
--- a/src/asset_map.h
+++ b/src/asset_map.h
@@ -1,3 +1,4 @@
+#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include "xml.h"
diff --git a/src/cpl.h b/src/cpl.h
index f49b6efb..a0426b96 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -1,3 +1,4 @@
+#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include "xml.h"
diff --git a/src/picture_asset.cc b/src/picture_asset.cc
index d9456194..e35dcc62 100644
--- a/src/picture_asset.cc
+++ b/src/picture_asset.cc
@@ -100,7 +100,7 @@ PictureAsset::construct (sigc::slot<string, int> get_path)
fill_writer_info (&writer_info);
ASDCP::JP2K::MXFWriter mxf_writer;
- if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().c_str(), writer_info, picture_desc))) {
+ if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().string().c_str(), writer_info, picture_desc))) {
throw FileError ("could not open MXF file for writing", mxf_path().string());
}
@@ -147,12 +147,12 @@ PictureAsset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
if (flags & MXF_INSPECT) {
ASDCP::JP2K::MXFReader reader_A;
- if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().c_str()))) {
+ if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().string().c_str()))) {
throw FileError ("could not open MXF file for reading", mxf_path().string());
}
ASDCP::JP2K::MXFReader reader_B;
- if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().c_str()))) {
+ if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().string().c_str()))) {
throw FileError ("could not open MXF file for reading", mxf_path().string());
}
diff --git a/src/sound_asset.cc b/src/sound_asset.cc
index 9a738a08..ed815eda 100644
--- a/src/sound_asset.cc
+++ b/src/sound_asset.cc
@@ -120,7 +120,7 @@ SoundAsset::construct (sigc::slot<string, Channel> get_path)
fill_writer_info (&writer_info);
ASDCP::PCM::MXFWriter mxf_writer;
- if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().c_str(), writer_info, audio_desc))) {
+ if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().string().c_str(), writer_info, audio_desc))) {
throw FileError ("could not open audio MXF for writing", mxf_path().string());
}
@@ -183,13 +183,13 @@ SoundAsset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
if (flags & MXF_INSPECT) {
ASDCP::PCM::MXFReader reader_A;
- if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().c_str()))) {
+ if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().string().c_str()))) {
cout << "failed " << mxf_path() << "\n";
throw FileError ("could not open MXF file for reading", mxf_path().string());
}
ASDCP::PCM::MXFReader reader_B;
- if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().c_str()))) {
+ if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().string().c_str()))) {
cout << "failed " << other->mxf_path() << "\n";
throw FileError ("could not open MXF file for reading", mxf_path().string());
}
diff --git a/src/xml.h b/src/xml.h
index 7cfb8e91..2469981c 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -3,6 +3,7 @@
#include <string>
#include <list>
+#include <stdint.h>
#include <glibmm.h>
#include <boost/shared_ptr.hpp>
#include "types.h"