> 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.
Or go the other way round and remove the need for PATH_MAX by making the file parameter mandatory so that we can eliminate both the OACR strcpy annoyance and this PATH_MAX issue. See https://github.com/libusbx/libusbx/commit/d53c599d0b1f9cd04af4ce788de3e3e41a7591a0 Regards, /Pete ------------------------------------------------------------------------------ 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