Put our version of compose.hpp inside the libdcp namespace,
authorCarl Hetherington <cth@carlh.net>
Wed, 22 Apr 2015 10:57:46 +0000 (11:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 22 Apr 2015 10:57:46 +0000 (11:57 +0100)
otherwise libdcp will end up calling DCP-o-matic's version
on OS X, with bad results.

src/compose.hpp

index b3f410c8ea52345112dc911671fe6756cbde9554..1ccf829c6d352ba757786fd65cf668a493ea8380 100644 (file)
@@ -38,6 +38,8 @@
 #include <list>
 #include <map>                 // for multimap
 
+namespace libdcp {
+
 namespace StringPrivate
 {
   // the actual composition class - using string::compose is cleaner, so we
@@ -389,5 +391,6 @@ namespace String
   }
 }
 
+}
 
 #endif // STRING_COMPOSE_H