]> git.sesse.net Git - vlc/commitdiff
darwin_specific: Save some expansive work at startup if we don't do NLS.
authorPierre d'Herbemont <pdherbemont@free.fr>
Wed, 30 Dec 2009 03:04:46 +0000 (04:04 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Wed, 30 Dec 2009 03:57:55 +0000 (04:57 +0100)
src/misc/darwin_specific.c

index a15671815cf0b52c9b5cb120fb37f64eed574e9b..0efdd6d75971bb0d8c5f232220486e0a504e2505 100644 (file)
@@ -108,6 +108,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
         p_char++;
     }
 
+#ifdef ENABLE_NLS
     /* Check if $LANG is set. */
     if( NULL == getenv("LANG") )
     {
@@ -135,6 +136,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
         }
         CFRelease( all_locales );
     }
+#endif
 }
 
 /*****************************************************************************