summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-29 23:02:00 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-29 23:02:00 +0100
commit07ee845fddca9c7f4e714cf0df8f3e755af7ed81 (patch)
tree62328cf211c7d3c365e2619b00a9de12efef1f92 /src/lib/util.h
parent2c942f2794bae0500fa514281367eb4365ef59ba (diff)
Add magic lines to put the DVD-o-matic window at the front on OS X so that it gets a menu bar. Put our Rect in a namespace to hide from Carbon's version.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index d0c350a56..3e1d7f4b4 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -44,6 +44,8 @@ extern "C" {
#define TIMING(...)
#endif
+#undef check
+
/** The maximum number of audio channels that we can cope with */
#define MAX_AUDIO_CHANNELS 6
@@ -150,6 +152,9 @@ struct Position
int y;
};
+namespace dvdomatic
+{
+
/** @struct Rect
* @brief A rectangle.
*/
@@ -185,6 +190,8 @@ struct Rect
Rect intersection (Rect const & other) const;
};
+}
+
extern std::string crop_string (Position, libdcp::Size);
extern int dcp_audio_sample_rate (int);
extern std::string colour_lut_index_to_name (int index);