--- a/src/sh4/sh4stat.h Sun May 25 21:01:55 2008 +0000 +++ b/src/sh4/sh4stat.h Mon Jul 14 07:44:42 2008 +0000 @@ -17,11 +17,15 @@ */ #ifndef lxdream_sh4stat_H -#define lxdream_sh4stat_H +#define lxdream_sh4stat_H 1 #include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { I_UNKNOWN, I_ADD, I_ADDI, I_ADDC, I_ADDV, @@ -61,10 +65,13 @@ #define SH4_INSTRUCTION_COUNT I_UNDEF -void sh4_stats_reset( void ); -void sh4_stats_print( FILE *out ); -void sh4_stats_add( sh4_inst_id id ); -void sh4_stats_add_by_pc( uint32_t pc ); + void sh4_stats_reset( void ); + void sh4_stats_print( FILE *out ); + void sh4_stats_add( sh4_inst_id id ); + void sh4_stats_add_by_pc( uint32_t pc ); +#ifdef __cplusplus +} +#endif #endif /* !lxdream_sh4stat_H */