Re: W32API fixes + ddk/kbdmou.h
Filip Navara <xnavara-VIXq6x/[email protected]> Wed, 12 May 2004 15:50:39 +0200
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------050008060703020001020207
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Danny Smith wrote:
>I get this with 3.3.3 and 3.4.0:
>
>Alignment of LONGLONG: 8
>Alignment of LARGE_INTEGER: 8
>
>
I found what's the problem. My apologies, the test I sent was one line
different from what I was really using. I had "#include <ddk/ntddk.h>"
at the beginning of the file kept from my previous tests. The problem
was that <ddk/ntddk.h> wraps all the #includes into a "#pragma
pack(push,4)" block. Attached patch solves that.
- Filip
--------------050008060703020001020207
Content-Type: text/plain;
name="ntddk.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ntddk.h.diff"
--- ddk/ntddk.h Fri Nov 15 01:08:16 2002
+++ ddk/ntddk.h Wed May 12 13:25:55 2004
@@ -35,8 +35,6 @@
extern "C" {
#endif
-#pragma pack(push,4)
-
#include <stdarg.h>
#include <windef.h>
#include <ntdef.h>
@@ -80,8 +78,6 @@
/* Definitions only in Windows NT 4 */
#include "winnt4.h"
-
-#pragma pack(pop)
#ifdef __cplusplus
}
--------------050008060703020001020207--
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3