Fix fopen() on windows to cope with long filenames (part of #1755).
[dcpomatic.git] / src / lib / util.cc
index 24ea42b8f2e0e945a31488a414e42ca1f4017f57..8a039764d0a77f4bec576e579b4b801c2f211ba3 100644 (file)
@@ -1167,3 +1167,30 @@ default_font_file ()
 
        return liberation_normal;
 }
+
+
+string
+to_upper (string s)
+{
+       transform (s.begin(), s.end(), s.begin(), ::toupper);
+       return s;
+}
+
+
+/* Set to 1 to print the IDs of some of our threads to stdout on creation */
+#define DCPOMATIC_DEBUG_THREADS 0
+
+#if DCPOMATIC_DEBUG_THREADS
+void
+start_of_thread (string name)
+{
+       std::cout << "THREAD:" << name << ":" << std::hex << pthread_self() << "\n";
+}
+#else
+void
+start_of_thread (string)
+{
+
+}
+#endif
+