--- previous/src/includes/cycInt.h 2018/04/24 19:32:13 1.1.1.4 +++ previous/src/includes/cycInt.h 2018/04/24 19:34:10 1.1.1.5 @@ -10,6 +10,10 @@ #ifndef HATARI_CYCINT_H #define HATARI_CYCINT_H +#ifdef __cplusplus +extern "C" { +#endif + /* Interrupt handlers in system */ typedef enum { @@ -50,7 +54,7 @@ typedef struct void (*pFunction)(void); } INTERRUPTHANDLER; -INTERRUPTHANDLER PendingInterrupt; +extern INTERRUPTHANDLER PendingInterrupt; extern int64_t nCyclesMainCounter; extern int64_t nCyclesOver; @@ -67,4 +71,8 @@ void CycInt_RemovePendingInterrupt(inter bool CycInt_InterruptActive(interrupt_id Handler); bool CycInt_SetNewInterruptUs(void); +#ifdef __cplusplus +} +#endif + #endif /* ifndef HATARI_CYCINT_H */