i18n: build fixes: #if -> #ifdef for ENABLE_NLS
authorStefan Kost <ensonic@users.sf.net>
Mon, 22 Mar 2010 15:26:37 +0000 (17:26 +0200)
committerStefan Kost <ensonic@users.sf.net>
Mon, 22 Mar 2010 15:26:37 +0000 (17:26 +0200)
ext/flac/gstflac.c
ext/pulse/plugin.c
ext/wavpack/gstwavpack.c
gst-libs/gst/gettext.h
gst/multifile/gstmultifilesink.h

index 95861e3..e093e71 100644 (file)
@@ -31,7 +31,7 @@
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
   GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
       LOCALEDIR);
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
index 58e8ba1..beb8848 100644 (file)
@@ -34,7 +34,7 @@ GST_DEBUG_CATEGORY (pulse_debug);
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
   GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
       LOCALEDIR);
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
index 6045717..b01f443 100644 (file)
@@ -37,7 +37,7 @@ plugin_init (GstPlugin * plugin)
 {
   GST_DEBUG_CATEGORY_INIT (wavpack_debug, "wavpack", 0, "Wavpack elements");
 
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
   GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
       LOCALEDIR);
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
index 8b262f4..59902b3 100644 (file)
@@ -20,7 +20,7 @@
 #define _LIBGETTEXT_H 1
 
 /* NLS can be disabled through the configure --disable-nls option.  */
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
 
 /* Get declarations of GNU message catalog functions.  */
 # include <libintl.h>
index 1768911..cc4a4dd 100644 (file)
@@ -28,6 +28,7 @@
 #include <gst/gst.h>
 #include <gst/base/gstbasesink.h>
 #include <errno.h>
+#include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <sys/types.h>