rc433/sniffer.c

changeset 23
d820a6f3ec16
parent 20
f7f9463cdefd
child 58
e8e7b46b705b
--- a/rc433/sniffer.c	Sun May 04 22:29:18 2014 +0200
+++ b/rc433/sniffer.c	Mon May 05 10:33:26 2014 +0200
@@ -23,6 +23,7 @@
 #include "../lib/mbselib.h"
 #include "sniffer.h"
 
+#ifdef HAVE_WIRINGPI_H
 
 int main(int argc, char *argv[]) {
   
@@ -59,3 +60,12 @@
     exit(0);
 }
 
+#else
+
+int main(int argc, char *argv[]) {
+    fprintf(stderr, "This program does nothing without the wiringPi library\n");
+    return 0;
+}
+
+#endif
+

mercurial