Commit 6837ebe1 authored by Pierre Ynard's avatar Pierre Ynard

Build fix

parent 494dbf11
......@@ -27,6 +27,9 @@
#ifdef ENABLE_NLS
# include <libintl.h>
# if defined (__APPLE__) || defined (WIN32)
# include "config/configuration.h"
# endif
#endif
int vlc_bindtextdomain (const char *domain)
......@@ -40,11 +43,10 @@ int vlc_bindtextdomain (const char *domain)
# else
char *datadir = config_GetDataDirDefault();
char *path;
int ret;
if (unlikely(datadir == NULL))
return -1;
int ret = asprintf (&path, "%s" DIR_SEP "locale", datadir);
ret = asprintf (&path, "%s" DIR_SEP "locale", datadir);
free (datadir);
# endif
......
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