[vlc-devel] [PATCH 2/3] OS/2: Include ctype.h in modules/demux/playlist/playlist.c

Måns Rullgård mans at mansr.com
Fri Aug 24 16:17:25 CEST 2012


KO Myung-Hun <komh78 at gmail.com> writes:

> This fixes the following error.
>
> -----
> make.exe[1]: Entering directory `F:/lang/work/vlc/vlc.git/modules/demux/playlist'
>   CC     libplaylist_plugin_la-playlist.lo
> playlist.c: In function 'ProcessMRL':
> playlist.c:207: error: implicit declaration of function 'isalpha'
> make.exe[1]: *** [libplaylist_plugin_la-playlist.lo] Error 1
> make.exe[1]: Leaving directory `F:/lang/work/vlc/vlc.git/modules/demux/playlist'
> make.exe: *** [all] Error 2
> -----
> ---
>  modules/demux/playlist/playlist.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules/demux/playlist/playlist.c b/modules/demux/playlist/playlist.c
> index e0f70ce..6d548e3 100644
> --- a/modules/demux/playlist/playlist.c
> +++ b/modules/demux/playlist/playlist.c
> @@ -32,7 +32,7 @@
>  #include <vlc_plugin.h>
>  #include <vlc_demux.h>
>  #include <vlc_url.h>
> -#ifdef WIN32
> +#if defined( WIN32 ) || defined( __OS2__ )
>  # include <ctype.h>
>  #endif
>  #include <assert.h>
> -- 

ctype.h is a standard header so keep things simple and include it
unconditionally.

-- 
Måns Rullgård
mans at mansr.com




More information about the vlc-devel mailing list