On Sun, Sep 19, 2010 at 2:38 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Sun, Sep 12, 2010 at 5:34 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: >> On Thu, Sep 9, 2010 at 3:53 AM, Ozkan Sezer <seze...@gmail.com> wrote: >>> 2. the name of your src/usb.h is, well, usb.h, and it conflicts, ie. >>> searched before the system provided usb.h. Therefore, it must be >>> renamed to something else. For my own tests, I renamed it to >>> usb_private.h and changed all occurences of #include "usb.h" (with >>> quotes) to use the new name. >> >> The usb.h header file is the chosen header file name by the founder >> of libusb-win32 project. In the old days (MinGW.org) this is not an >> issue since the MinGW.org "usb.h" is inside <ddk/usb.h>. Now >> MinGW-w64 provides the "usb.h" inside the system include >> directory. Not so sure if there is a good solution. Probably >> we have to ask users to put the header inside <libusb-win32/usb.h> >> but this may break other software packages which expect to >> have libusb-win32 "usb.h" inside the system include directory. > > Actually usb.h is the chosen name from the founder of libusb > project (under Linux first). libusb-win32 follows it. > > I think the MinGW-w64 newly included usb.h will break > many existing software which uses libusb-win32. For > example, libftdi's header is called ftdi.h which includes <usb.h>. > libusb and libusb-win32 have been around for years. > Is it possible to move MinGW-w64 usb.h and associated > files inside <ddk/>?
AFAIK, usb.h is out of ddk because it is part of ms platform sdk, therefore, it _needs_ to be out of a ddk subdirectory for proper compatibility. > > -- > Xiaofan -- Ozkan ------------------------------------------------------------------------------ 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 Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public