[libdvbpsi-devel] [PATCH] Rearrange declaration of dvbpsi_msg_level_t so that it works with g++

Jean-Paul Saman jpsaman at videolan.org
Thu Oct 25 16:45:19 CEST 2012


On Wed, Oct 24, 2012 at 11:44 PM, Martin Jackson
<mjackson220.list at gmail.com> wrote:
> Rearrange declaration of dvbpsi_msg_level_t so that it works with g++

Patch applied.

Kind regards,

Jean-Paul Saman.

>
> ---
>  src/dvbpsi.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/dvbpsi.h b/src/dvbpsi.h
> index 3118da8..0473392 100644
> --- a/src/dvbpsi.h
> +++ b/src/dvbpsi.h
> @@ -55,7 +55,6 @@ typedef struct dvbpsi_s dvbpsi_t;
>   * \typedef enum dvbpsi_msg_level dvbpsi_msg_level_t
>   * \brief DVBPSI message level enum
>   */
> -typedef enum dvbpsi_msg_level dvbpsi_msg_level_t;
>  enum dvbpsi_msg_level
>  {
>      DVBPSI_MSG_NONE  = -1, /*!< No messages */
> @@ -63,6 +62,7 @@ enum dvbpsi_msg_level
>      DVBPSI_MSG_WARN  =  1, /*!< Error and Warning messages */
>      DVBPSI_MSG_DEBUG =  2, /*!< Error, warning and debug messages */
>  };
> +typedef enum dvbpsi_msg_level dvbpsi_msg_level_t;
>
>  /*****************************************************************************
>   * dvbpsi_message_cb
> --
> 1.7.9.6 (Apple Git-31.1)


More information about the libdvbpsi-devel mailing list