diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-20 20:45:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-20 20:45:32 +0100 |
| commit | f20cd70a9afc28f785ef4a50c875ccf6c3729462 (patch) | |
| tree | 1d8e81f8b75e8ac070c6ecb5f4b9af28fc97f6cc /src/lib/util.h | |
| parent | 2c1533e4e5568a8bb4f538cfb845d07b0637380c (diff) | |
Import Ardour's LocaleGuard to fix problems with saving decimals to metadata (#119).
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index 3d251cf06..31d0fc967 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -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 |
