# HG changeset patch # User Michiel Broek # Date 1399554596 -7200 # Node ID 9c7119ac0455181db45a7bf5c83aea8a1a7b0da4 # Parent ac763b87ee251a68f40485bbd64945c2a1350382 Fix for conditional defines for wiringPi library diff -r ac763b87ee25 -r 9c7119ac0455 lib/rdconfig.c --- a/lib/rdconfig.c Wed May 07 23:01:18 2014 +0200 +++ b/lib/rdconfig.c Thu May 08 15:09:56 2014 +0200 @@ -35,7 +35,9 @@ static int getstr(char **); static int getint(char **); static int getw1(char **); +#ifdef HAVE_WIRINGPI_H static int getrcs(char **); +#endif //static int getbyt(char **); //static int gethex(char **); @@ -64,7 +66,9 @@ void killconfig(void) { w1_therm *tmp1, *old1; +#ifdef HAVE_WIRINGPI_H rc_switch *tmp2, *old2; +#endif if (Config.name) free(Config.name); @@ -271,6 +275,7 @@ +#ifdef HAVE_WIRINGPI_H static int getrcs(char **dest) { char *p, *q = NULL, *r = NULL; @@ -308,7 +313,7 @@ return 0; } - +#endif /*