Add some compatibility defines to dnssd.c.
[deb_shairplay.git] / src / lib / dnssd.c
index 813796262f944d812c9dba887c6f284a0d919540..4859e3239c7aa569109a7d27933d4c67508fbb29 100644 (file)
  *  Lesser General Public License for more details.
  */
 
+/* These defines allow us to compile on iOS */
+#ifndef __has_feature
+# define __has_feature(x) 0
+#endif
+#ifndef __has_extension
+# define __has_extension __has_feature
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>