]> git.sesse.net Git - vlc/commitdiff
libvlc-common.c: Fix a warning on Win32 and Mac OS if --disable-nls.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 15 Feb 2008 23:33:16 +0000 (23:33 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 15 Feb 2008 23:33:16 +0000 (23:33 +0000)
src/libvlc-common.c

index 752750a313c044036c0a5dec9b5a26dfe6c86414..6ed368af2aa09f9c02546506c67d01dd5b5e4cec 100644 (file)
@@ -105,7 +105,8 @@ static volatile unsigned int i_instances = 0;
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
-#if defined (__APPLE__) || defined (WIN32)
+#if defined( ENABLE_NLS ) && (defined (__APPLE__) || defined (WIN32)) && \
+    ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
 static void SetLanguage   ( char const * );
 #endif
 static inline int LoadMessages (void);
@@ -1117,7 +1118,8 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc,
     return VLC_SUCCESS;
 };
 
-#if defined (__APPLE__) || defined (WIN32)
+#if defined( ENABLE_NLS ) && (defined (__APPLE__) || defined (WIN32)) && \
+    ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
 /*****************************************************************************
  * SetLanguage: set the interface language.
  *****************************************************************************