Skip to content

Commit

Permalink
gcc/g++ 4.x fix
Browse files Browse the repository at this point in the history
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@844 d19143bc-622f-0410-bfdd-b5b2a6649095
  • Loading branch information
lilo_booter committed Oct 3, 2005
1 parent e7aef2a commit b50585d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/framework/mlt_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@

#include "mlt_types.h"

#if GCC_VERSION >= 40000
typedef void ( *mlt_transmitter )( void *, ... );
typedef void ( *mlt_listener )( void *, ... );
#else
typedef void ( *mlt_transmitter )( );
typedef void ( *mlt_listener )( );
#endif

extern void mlt_events_init( mlt_properties self );
extern int mlt_events_register( mlt_properties self, char *id, mlt_transmitter transmitter );
Expand Down
4 changes: 4 additions & 0 deletions src/framework/mlt_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#ifndef _MLT_TYPES_H_
#define _MLT_TYPES_H_

#ifndef GCC_VERSION
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif

#include <stdint.h>

#include "mlt_pool.h"
Expand Down

0 comments on commit b50585d

Please sign in to comment.