]> git.sesse.net Git - vlc/commitdiff
Enable NLS even though VLC is installed on other place than /usr/local on OS/2
authorKO Myung-Hun <komh@chollian.net>
Mon, 10 Oct 2011 11:44:03 +0000 (20:44 +0900)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 10 Oct 2011 15:45:46 +0000 (18:45 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/modules/textdomain.c

index 60a1682e5da1046d4f027c08bdafef755502622e..130f1aef9e8602d2b0679076b2f34150a5bd4b60 100644 (file)
@@ -27,7 +27,7 @@
 
 #ifdef ENABLE_NLS
 # include <libintl.h>
-# if defined (__APPLE__) || defined (WIN32)
+# if defined (__APPLE__) || defined (WIN32) || defined(__OS2__)
 #  include "config/configuration.h"
 #  include <vlc_charset.h>
 # endif
@@ -37,7 +37,7 @@ int vlc_bindtextdomain (const char *domain)
 {
 #if defined (ENABLE_NLS)
     /* Specify where to find the locales for current domain */
-# if !defined (__APPLE__) && !defined (WIN32)
+# if !defined (__APPLE__) && !defined (WIN32) && !defined(__OS2__)
     static const char path[] = LOCALEDIR;
 
     if (bindtextdomain (domain, path) == NULL)