Missed these two in the previous commit.
[synfig.git] / synfig-core / trunk / src / tool / main.cpp
index 4f1618c..afda522 100644 (file)
@@ -35,6 +35,7 @@
 #include <list>
 #include <ETL/clock>
 #include <algorithm>
+#include <cstring>
 
 #include <synfig/loadcanvas.h>
 #include <synfig/savecanvas.h>
@@ -57,8 +58,13 @@ using namespace synfig;
 
 /* === M A C R O S ========================================================= */
 
+#ifdef ENABLE_NLS
 #undef _
 #define _(x) gettext(x)
+#else
+#undef _
+#define _(x) (x)
+#endif
 
 enum exit_code
 {
@@ -840,8 +846,11 @@ int main(int argc, char *argv[])
        job_list_t job_list;
 
        setlocale(LC_ALL, "");
+
+#ifdef ENABLE_NLS
        bindtextdomain("synfig", LOCALEDIR);
        textdomain("synfig");
+#endif
 
        progname=argv[0];
        Progress p(argv[0]);