]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix gettext problem in wx-console when ENABLE_NLS is not set.
authorNicolas Boichat <nicolas@boichat.ch>
Fri, 19 Aug 2005 09:34:49 +0000 (09:34 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Fri, 19 Aug 2005 09:34:49 +0000 (09:34 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2336 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/baconfig.h

index d7000e57095d0dc2a4a2fdca3946e9c2ead1010a..04dc8c6617aeeee2575bb238800111c7a90758f9 100644 (file)
 #define NPRT(x) (x)?(x):_("*None*")
 
 #ifdef ENABLE_NLS
-#include <libintl.h>
-#include <locale.h>
-#ifndef _
-#define _(s) gettext((s))
-#endif /* N */
-#ifndef N_
-#define N_(s) (s)
-#endif /* N_ */
-#else
-#undef _
-#define _(s) (s)
-#undef N_
-#define N_(s) (s)
-#undef textdomain
-#define textdomain(d)
-#undef bindtextdomain
-#define bindtextdomain(p, d)
-#undef setlocale
-#define setlocale(p, d)
-#endif
+   #include <libintl.h>
+   #include <locale.h>
+   #ifndef _
+      #define _(s) gettext((s))
+   #endif /* _ */
+   #ifndef N_
+      #define N_(s) (s)
+   #endif /* N_ */
+#else /* !ENABLE_NLS */
+   #ifndef _
+      #define _(s) (s)
+   #endif
+   #ifndef N_
+      #define N_(s) (s)
+   #endif
+   #ifndef textdomain
+      #define textdomain(d)
+   #endif
+   #ifndef bindtextdomain
+      #define bindtextdomain(p, d)
+   #endif
+   #ifndef setlocale
+      #define setlocale(p, d)
+   #endif
+#endif /* ENABLE_NLS */
 
 /* This should go away! ****FIXME***** */
 #define MAXSTRING 500