On Tue, Jun 28, 2011 at 2:25 PM, Steve Bennett <[email protected]> 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
--
Xiaofan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development