diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 4c581436c..76bdd0645 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1528,6 +1528,8 @@ void CRCInput::play_click() { } + +#ifdef HAVE_COOLSTREAM_NEVIS_IR_H // hint: ir_protocol_t and other useful things are defined in nevis_ir.h void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address) { @@ -1590,3 +1592,8 @@ void CRCInput::set_rc_hw(void) set_rc_hw(ir_protocol, ir_address); } +#else +void CRCInput::set_rc_hw(void) +{ +} +#endif diff --git a/src/driver/rcinput.h b/src/driver/rcinput.h index cfd74bdcc..981a878bf 100644 --- a/src/driver/rcinput.h +++ b/src/driver/rcinput.h @@ -32,12 +32,15 @@ #ifndef __MOD_rcinput__ #define __MOD_rcinput__ +#include #include #include #include #include #include +#ifdef HAVE_COOLSTREAM_NEVIS_IR_H #include +#endif #ifndef KEY_OK #define KEY_OK 0x160 @@ -149,7 +152,9 @@ class CRCInput int translate(int code, int num); void calculateMaxFd(void); int checkTimers(); +#ifdef HAVE_COOLSTREAM_NEVIS_IR_H void set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address); +#endif public: //rc-code definitions static const neutrino_msg_t RC_Repeat = 0x0400;