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

Build fix

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