diff --git a/include/musyx/musyx.h b/include/musyx/musyx.h index 94fab52b..6df2be59 100644 --- a/include/musyx/musyx.h +++ b/include/musyx/musyx.h @@ -1,6 +1,10 @@ #ifndef MUSYX_H #define MUSYX_H +#ifdef __cplusplus +extern "C" { +#endif + typedef signed char s8; typedef unsigned char u8; typedef signed short s16; @@ -56,10 +60,6 @@ typedef struct SND_SEQVOLDEF { u8 volGroup; } SND_SEQVOLDEF; -#ifdef __cplusplus -extern "C" { -#endif - typedef struct SND_HOOKS { void* (*malloc)(u32 len); void (*free)(void* addr);