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

Martin Jackson mjackson220.list at gmail.com
Wed Oct 24 23:44:35 CEST 2012


Rearrange declaration of dvbpsi_msg_level_t so that it works with g++

---
 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