On 2012.08.10 05:10, Orin Eman wrote: > I'd do something like the following: > > #include <limits.h> > #if defined(WIN32) && !defined(PATH_MAX) > #define PATH_MAX (MAX_PATH+1) > #endif > > and use PATH_MAX like you suggested.
I'll try to do that. Note however that there's going to be a change of plan with regards to FX2/FX3 support, as I have just completed the porting of fxload [1] from linux-hotplug [2] to libusbx, with the aim of including it as a sample. As a matter of fact, it is now included as a full fledged sample in the 0K branch [3]. For now support is only for FX2 and earlier, so we need to re-apply an FX3 patch. I'll try to take care of that, but Markus, if you feel like you want to go for it, don't hesitate. The rationale to spending time on a standalone FX2/FX3 sample is that quite a few developers, be them on Windows or Linux, seem to have an FX device to play with => we might as well try to promote libusbx by giving them a solid cross platform firmware upload tool they can rely on. It also helps making our sample section less pathetic than it is right now. Note that the original fxload is GPL2, so that sample is also GPL2. Also you'll see that a bunch of getopt files have been added to the samples directory, since MSVC require them (they are compiled as a library there). Shouldn't be much of an issue, especially as having an universal getopt could to come handy when producing more console samples. Finally, I have a separate fxload standalone project detailing the changes I applied to the original project [4]. Not sure if I'm going to bother submitting back these patches to linux-hotplug at this stage... Regards, /Pete [1] http://ccrma.stanford.edu/planetccrma/man/man8/fxload.8.html [2] http://sourceforge.net/projects/linux-hotplug/ [3] https://github.com/pbatard/libusbx/commit/baa4339c911f861c810513569b838ec9245148e5 [4] https://github.com/pbatard/fxload/commits/master ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel