From 0840ec8cdbf5b6a3a7886e88076ecd0471409ca0 Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Mon, 20 Dec 2004 11:18:53 +0000 Subject: [PATCH] * include/vlc_image.h,vlc_xml.h: make these c++ happy. --- include/vlc_image.h | 8 ++++++++ include/vlc_xml.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/vlc_image.h b/include/vlc_image.h index 0422dcbd59..9180781596 100644 --- a/include/vlc_image.h +++ b/include/vlc_image.h @@ -26,6 +26,10 @@ #include "vlc_video.h" +# ifdef __cplusplus +extern "C" { +# endif + struct image_handler_t { picture_t * (*pf_read) ( image_handler_t *, block_t *, @@ -53,4 +57,8 @@ VLC_EXPORT( void, image_HandlerDelete, ( image_handler_t * ) ); #define image_Write( a, b, c, d ) a->pf_write( a, b, c, d ) #define image_WriteUrl( a, b, c, d, e ) a->pf_write_url( a, b, c, d, e ) +# ifdef __cplusplus +} +# endif + #endif /* _VLC_IMAGE_H */ diff --git a/include/vlc_xml.h b/include/vlc_xml.h index 0788f33f47..daa770e710 100644 --- a/include/vlc_xml.h +++ b/include/vlc_xml.h @@ -24,6 +24,10 @@ #ifndef _VLC_XML_H #define _VLC_XML_H +# ifdef __cplusplus +extern "C" { +# endif + struct xml_t { VLC_COMMON_MEMBERS @@ -72,4 +76,8 @@ struct xml_reader_t #define XML_READER_ENDELEM 2 #define XML_READER_TEXT 3 +# ifdef __cplusplus +} +# endif + #endif -- 2.39.2