changeset 1563:828f45d8e8f8

Move NLS support macros to xs_support.h
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Sep 2007 01:23:36 +0300
parents 88878ed02ca0
children 5e4393a4c099
files src/sid/xmms-sid.h src/sid/xs_support.h
diffstat 2 files changed, 20 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/src/sid/xmms-sid.h	Sun Sep 02 23:08:33 2007 +0300
+++ b/src/sid/xmms-sid.h	Mon Sep 03 01:23:36 2007 +0300
@@ -30,29 +30,6 @@
 #endif
 
 /*
- * Standard gettext macros.
- */
-#ifdef ENABLE_NLS
-#  include <libintl.h>
-#  undef _
-#  define _(String) dgettext (PACKAGE, String)
-#  ifdef gettext_noop
-#    define N_(String) gettext_noop (String)
-#  else
-#    define N_(String) (String)
-#  endif
-#else
-#  define textdomain(String) (String)
-#  define gettext(String) (String)
-#  define dgettext(Domain,Message) (Message)
-#  define dcgettext(Domain,Message,Type) (Message)
-#  define bindtextdomain(Domain,Directory) (Domain)
-#  define _(String) (String)
-#  define N_(String) (String)
-#endif
-
-
-/*
  * Some constants and defines
  */
 /* #define to enable spurious debugging messages for development
--- a/src/sid/xs_support.h	Sun Sep 02 23:08:33 2007 +0300
+++ b/src/sid/xs_support.h	Mon Sep 03 01:23:36 2007 +0300
@@ -43,13 +43,29 @@
 #endif
 
 
-/* Metadata structures */
-#ifdef AUDACIOUS_PLUGIN
-#define t_xs_tuple Tuple
+/* Standard gettext macros
+ */
+#ifdef ENABLE_NLS
+#  include <libintl.h>
+#  undef _
+#  define _(String) dgettext (PACKAGE, String)
+#  ifdef gettext_noop
+#    define N_(String) gettext_noop (String)
+#  else
+#    define N_(String) (String)
+#  endif
 #else
-#define t_xs_tuple TitleInput
+#  define _LIBINTL_H
+#  define textdomain(String) (String)
+#  define gettext(String) (String)
+#  define dgettext(Domain,Message) (Message)
+#  define dcgettext(Domain,Message,Type) (Message)
+#  define bindtextdomain(Domain,Directory) (Domain)
+#  define _(String) (String)
+#  define N_(String) (String)
 #endif
 
+
 /* VFS replacement functions
  */
 #ifdef __AUDACIOUS_NEWVFS__