summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-09-21 15:24:22 +0100
committerPete Batard <pbatard@gmail.com>2010-09-21 15:24:22 +0100
commit54e0ee800d58583520b870a29a4c6e7c2619b33f (patch)
treeb67672c16a8c8db351c415e20e2b0dc5453eedf0 /autogen.sh
parentf3913186955bbed18526efc3e4aa1341959df405 (diff)
downloadlibusb-54e0ee800d58583520b870a29a4c6e7c2619b33f.tar.gz
fixed missing def entries for function calls with no args
* this is needed for libusb_getversion() in MinGW32
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 316052e..ae06b2f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,7 +14,7 @@ create_def()
# calls in MinGW generated objects, and .def based MS generated DLLs don't
# have such a decoration => linking to MS DLL will fail without aliases.
# Currently, the maximum size is 32 and all sizes are multiples of 4
- for i in 4 8 12 16 20 24 28 32
+ for i in 0 4 8 12 16 20 24 28 32
do
sed -n -e "s/.*API_EXPORTED.*\([[:blank:]]\)\(libusb.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def
sed -n -e "s/.*LIBUSB_CALL.*\([[:blank:]]\)\(libusb.*\)(.*/ \2@$i = \2/p" libusb/*.c >> libusb/libusb-1.0.def