Hi,
unused so far, but that's the obvious starting point for the entire
operation as discussed on IRC.
Corinna
* _mingw.h.in (__32LONG): Define. Explain what it's good for.
Index: _mingw.h.in
===================================================================
--- _mingw.h.in (revision 5223)
+++ _mingw.h.in (working copy)
@@ -17,6 +17,17 @@
#include "_cygwin.h"
#endif
+/* Target specific macro replacement for type "long". In the Windows API,
+ the type long is always 32 bit, even if the target is 64 bit (LLP64).
+ On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
+ sized definitions and declarations, all usage of type long in the Windows
+ headers have to be replaced by the below defined macro __32LONG. */
+#ifndef __LP64__ /* 32 bit target, 64 bit Mingw target */
+#define __32LONG long
+#else /* 64 bit Cygwin target */
+#define __32LONG int
+#endif
+
/* C/C++ specific language defines. */
#ifdef _WIN64
#ifdef __stdcall
------------------------------------------------------------------------------
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/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public