]> git.sesse.net Git - vlc/commitdiff
if -> ifdef
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 4 Feb 2008 18:59:46 +0000 (18:59 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 4 Feb 2008 18:59:46 +0000 (18:59 +0000)
src/text/charset.c

index 9f30eda724ef5c67261e5a1db5ca63afaa3cd33c..e958d5a96e4d632990f3d593372b6fadbab5489b 100644 (file)
@@ -239,7 +239,7 @@ vlc_bool_t vlc_current_charset( char **psz_charset )
 
 #if !(defined WIN32 || defined OS2 || defined __APPLE__)
 
-# if HAVE_LANGINFO_CODESET
+# ifdef HAVE_LANGINFO_CODESET
     /* Most systems support nl_langinfo( CODESET ) nowadays.  */
     psz_codeset = nl_langinfo( CODESET );
     if( !strcmp( psz_codeset, "ANSI_X3.4-1968" ) )
@@ -253,7 +253,7 @@ vlc_bool_t vlc_current_charset( char **psz_charset )
      * (like SunOS 4 or DJGPP) have only the C locale.  Therefore we don't
      * use setlocale here; it would return "C" when it doesn't support the
      * locale name the user has set. Darwin's setlocale is broken. */
-#  if HAVE_SETLOCALE && !__APPLE__
+#  if defined (HAVE_SETLOCALE) && !defined (__APPLE__)
     psz_locale = setlocale( LC_ALL, NULL );
 #  endif
     if( psz_locale == NULL || psz_locale[0] == '\0' )