[vlc-devel] commit: Build fix (Pierre Ynard )
git version control
git at videolan.org
Thu Jan 28 22:41:21 CET 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Jan 28 22:41:08 2010 +0100| [6837ebe13aff7def3f61dbf3f0e5a20327002282] | committer: Pierre Ynard
Build fix
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6837ebe13aff7def3f61dbf3f0e5a20327002282
---
src/modules/textdomain.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/modules/textdomain.c b/src/modules/textdomain.c
index f5c58c3..4d7e54e 100644
--- a/src/modules/textdomain.c
+++ b/src/modules/textdomain.c
@@ -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
More information about the vlc-devel
mailing list