On Sat, Sep 11, 2010 at 9:04 PM, Ozkan Sezer <[email protected]> wrote:
> OK, reading wdm.h more carefully, the FASTCALL declarations are
> protected by an #ifdef NO_INTERLOCKED_INTRINSICS  guard:  For x86,
> can you please recompile by adding -DNO_INTERLOCKED_INTRINSICS
> and see if it links and works?

Yes this works for building. Thanks for the fast help.
CFLAGS = -m32 -O2 -Wall -DWINVER=0x500 -DNO_INTERLOCKED_INTRINSICS $(DBG_DEFINE)

windres  -I./src  --target=pe-i386 ./src/driver/libusb_driver_rc.rc -o libusb_dr
iver_rc.o
gcc -static -o libusb0.sys abort_endpoint.o claim_interface.o clear_feature.o di
spatch.o get_configuration.o get_descriptor.o get_interface.o get_status.o ioctl
.o libusb_driver.o pnp.o release_interface.o reset_device.o reset_endpoint.o set
_configuration.o set_descriptor.o set_feature.o set_interface.o transfer.o vendo
r_request.o power.o driver_registry.o error.o libusb_driver_rc.o  libusb0_drv.de
f -s -m32 -shared -Wl,--entry,_driveren...@8 -nostartfiles -nostdlib -L. -lusbd
-lntoskrnl -lhal

mc...@win7homex64_pc /d/work/mingw-w64/libusb-win32-src-1.2.1.20_mingw32
$ file libusb0.sys
libusb0.sys: PE32 executable for MS Windows (DLL) (console) Intel 80386 32-bit

>
> (Of course for the ideal case, we would provide proper inlines for
> them and no import would be necessary.)
>



-- 
Xiaofan

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to