On 28/06/2011, at 5:14 PM, Xiaofan Chen wrote:

> On Tue, Jun 28, 2011 at 2:25 PM, Steve Bennett <ste...@workware.net.au> wrote:
>> If you like, you can try the following two patches.
>> To do this, you will need to first update jimtcl to the master branch.
>> 
>> I have compile tested this, but I don't have anything to run it on.
> 
> Just a minor thing.
> 
> -#ifdef __MINGW32__
> -#define MKDIR_ONE_ARG
> +#if defined(__MINGW32__) || defined(__MINGW64__)
> +#define HAVE_MKDIR_ONE_ARG
> 
> Actually MinGW-w64 (32bit or 64bit) also defines __MINGW32__.
> 
> bash-4.1# x86_64-w64-mingw32-gcc -dD -E -x c /dev/null | grep MINGW64
> #define __MINGW64__ 1
> bash-4.1# x86_64-w64-mingw32-gcc -dD -E -x c /dev/null | grep MINGW32
> #define __MINGW32__ 1
> 
> In case you need to differentiate MinGW.org MINGW32 and
> MinGW-w64, you can use __MINGW64_VERSION_MAJOR
> which is defined in the file _mingw_mac.h for MinGW-w64.
>    #define __MINGW64_VERSION_MAJOR    1
>    #define __MINGW64_VERSION_MINOR    1

Thanks. I was just being safe since the OP seemed to indicate
that __MINGW32__ wasn't defined.

Cheers,
Steve

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: +61 434 921 300
E: ste...@workware.net.au   F: +61 7 3391 6002





_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to