Fix for conditional defines for wiringPi library

Thu, 08 May 2014 15:09:56 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 08 May 2014 15:09:56 +0200
changeset 30
9c7119ac0455
parent 29
ac763b87ee25
child 31
89dd2b691701

Fix for conditional defines for wiringPi library

lib/rdconfig.c file | annotate | diff | comparison | revisions
--- 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
 
 
 /*

mercurial