Commit 0b06fc57 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Blind attempt at fixing the libintl/g++-4.2 problem

parent e39bc8a5
...@@ -230,8 +230,6 @@ typedef void *locale_t; ...@@ -230,8 +230,6 @@ typedef void *locale_t;
#if defined (ENABLE_NLS) #if defined (ENABLE_NLS)
# include <libintl.h> # include <libintl.h>
#else
# define dgettext(dom, str) ((char *)(str))
#endif #endif
#define N_(str) gettext_noop (str) #define N_(str) gettext_noop (str)
......
...@@ -327,7 +327,11 @@ int vlc_wclosedir( void *_p_dir ) ...@@ -327,7 +327,11 @@ int vlc_wclosedir( void *_p_dir )
*/ */
char *vlc_gettext( const char *msgid ) char *vlc_gettext( const char *msgid )
{ {
#ifdef ENABLE_NLS
return dgettext( PACKAGE_NAME, msgid ); return dgettext( PACKAGE_NAME, msgid );
#else
return (char *)msgid;
#endif
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
#include "modules/modules.h" #include "modules/modules.h"
#include "config/configuration.h" #include "config/configuration.h"
#include "libvlc.h" #include "libvlc.h"
#ifndef ENABLE_NLS
# define dgettext(d, m) ((char *)(m))
#endif
static const char default_name[] = "unnamed"; static const char default_name[] = "unnamed";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment