A few build fixes.
[dcpomatic.git] / src / lib / types.h
index 4b8b8072d909caa311db52b815da8c888f6448cf..70262afb0a7c670abf0fd9bc3f23eda9f072b17b 100644 (file)
@@ -31,7 +31,7 @@ typedef int64_t ContentAudioFrame;
 typedef int     ContentVideoFrame;
 typedef int64_t Time;
 #define TIME_MAX INT64_MAX
-#define TIME_HZ  96000
+#define TIME_HZ  ((Time) 96000)
 typedef int64_t OutputAudioFrame;
 typedef int     OutputVideoFrame;
 
@@ -76,6 +76,8 @@ struct Position
        int y;
 };
 
+namespace dcpomatic {
+
 /** @struct Rect
  *  @brief A rectangle.
  */
@@ -113,4 +115,6 @@ struct Rect
        bool contains (Position) const;
 };
 
+}
+
 #endif