From 2fa6989d9c4578258de43fe11fecba5e170f7883 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Thu, 9 Aug 2007 19:29:17 +0000 Subject: [PATCH] Fix previous commit on gcc. (oops). --- include/vlc_arrays.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h index 4750f43fe0..9073f82bfa 100644 --- a/include/vlc_arrays.h +++ b/include/vlc_arrays.h @@ -185,8 +185,10 @@ * 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 ************************************************************************/ -- 2.39.5