X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Futil.h;h=02cc742aa52f62a8fac1a467d1c7a44b310f8625;hb=47f25009bcbc765e397bcb471dd361a511c99daf;hp=065801a889b3888769794522d80c094b91782eff;hpb=afc495f722f89fea0bcc579046d1a5d362e36f69;p=dcpomatic.git diff --git a/src/lib/util.h b/src/lib/util.h index 065801a88..02cc742aa 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -198,5 +198,16 @@ private: extern int64_t video_frames_to_audio_frames (ContentVideoFrame v, float audio_sample_rate, float frames_per_second); extern std::pair cpu_info (); +class LocaleGuard +{ +public: + LocaleGuard (); + ~LocaleGuard (); + +private: + char* _old; +}; + + #endif