Merge master.
[dcpomatic.git] / src / lib / util.h
index 3d251cf06ad0d1d9ca36816ea438fdd41d26a680..31d0fc96707fb976759fed42e69b51225a845389 100644 (file)
@@ -293,5 +293,16 @@ extern int64_t video_frames_to_audio_frames (SourceFrame v, float audio_sample_r
 extern bool still_image_file (std::string);
 extern std::pair<std::string, int> cpu_info ();
 
+class LocaleGuard
+{
+public:
+       LocaleGuard ();
+       ~LocaleGuard ();
+       
+private:
+       char* _old;
+};
+
+
 #endif