]> git.sesse.net Git - vlc/commitdiff
Fix previous commit on gcc. (oops).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 9 Aug 2007 19:29:17 +0000 (19:29 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 9 Aug 2007 19:29:17 +0000 (19:29 +0000)
include/vlc_arrays.h

index 4750f43fe0181ec92bb049a26e3374ee93c995d7..9073f82bfa89d98caee131a39dc86671e11e5ecb 100644 (file)
  * Dictionaries
  ************************************************************************/
 
+#ifdef __cplus_plus__
 extern "C"
 {
+#endif
 /* This function is not intended to be crypto-secure, we only want it to be
  * fast and not suck too much. This one is pretty fast and did 0 collisions
  * in wenglish's dictionary.
@@ -321,8 +323,9 @@ vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p
     p_dict->p_entries[i_new].psz_key = strdup( psz_key );
     p_dict->p_entries[i_new].p_value = p_value;
 }
-
+#ifdef __cplus_plus__
 } /* extern "C" */
+#endif
 /************************************************************************
  * Dynamic arrays with progressive allocation
  ************************************************************************/