Add some compatibility defines to dnssd.c.
authorJuho Vähä-Herttua <juhovh@iki.fi>
Tue, 25 Mar 2014 20:52:37 +0000 (22:52 +0200)
committerJuho Vähä-Herttua <juhovh@iki.fi>
Tue, 25 Mar 2014 20:52:37 +0000 (22:52 +0200)
Original patch by S. Davilla from XBMC.

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>