X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fgeneral.h;h=b6069a9857c0e7656def5002a2365fdd82619150;hb=53abcdf3bc6701894ab8a61857fb46d160bd6f93;hp=7e8f0e35344dc9c192f1b4b3215cb843e6389010;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/general.h b/synfig-core/trunk/src/synfig/general.h index 7e8f0e3..b6069a9 100644 --- a/synfig-core/trunk/src/synfig/general.h +++ b/synfig-core/trunk/src/synfig/general.h @@ -30,6 +30,7 @@ #include #include "string.h" #include "version.h" +#include /* === M A C R O S ========================================================= */ @@ -40,7 +41,7 @@ //#define gettext(x) (x) #endif -#define SYNFIG_COPYRIGHT "Copyright (c) 2001-2004 Voria Software, LLC" +#define SYNFIG_COPYRIGHT "Copyright (c) 2001-2005 Robert B. Quattlebaum Jr., Adrian Bentley" #ifdef _DEBUG @@ -61,6 +62,20 @@ namespace synfig { +class ChangeLocale { + const char *previous; + int category; +public: + ChangeLocale(int category, const char *locale): + previous(setlocale(category,NULL)),category(category) + { + setlocale(category,locale); + } + ~ChangeLocale() { + setlocale(category,previous); + } +}; + /*! \class ProgressCallback ** \todo writeme */