Add minimal config.h for Xcode
authorLudovic Rousseau <ludovic.rousseau@gmail.com>
Fri, 26 Oct 2012 07:32:54 +0000 (09:32 +0200)
committerhjelmn <Nathan Hjelm hjelmn@cs.unm.edu>
Tue, 30 Jul 2013 16:41:44 +0000 (10:41 -0600)
Xcode do not use ./configure so the config.h file needs to be generated
by hand.
This config.h is the minimal file for libusbx built using Xcode.

Xcode/config.h [new file with mode: 0644]
libusb/version_nano.h

diff --git a/Xcode/config.h b/Xcode/config.h
new file mode 100644 (file)
index 0000000..492d43a
--- /dev/null
@@ -0,0 +1,28 @@
+/* config.h.  Manually generated for Xcode.  */
+
+/* Default visibility */
+#define DEFAULT_VISIBILITY /**/
+
+/* Message logging */
+#define ENABLE_LOGGING 1
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#define HAVE_GETTIMEOFDAY 1
+
+/* Define to 1 if you have the <poll.h> header file. */
+#define HAVE_POLL_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Darwin backend */
+#define OS_DARWIN 1
+
+/* type of second poll() argument */
+#define POLL_NFDS_TYPE nfds_t
+
+/* Use POSIX Threads */
+#define THREADS_POSIX 1
+
+/* Use GNU extensions */
+#define _GNU_SOURCE 1
index 9778432..38f9743 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10788
+#define LIBUSB_NANO 10789