Hi,

there's a bug in ntdef.h.  It defined PHYSICAL_ADDRESS only if it also
has to define LARGE_INTEGER.  So, if the definition of LARGE_INTEGER
is done elsewhere, PHYSICAL_ADDRESS is missing entirely.


Corinna


        * ntdef.h (PHYSICAL_ADDRESS): Define unconditionally.


Index: ntdef.h
===================================================================
--- ntdef.h     (revision 5139)
+++ ntdef.h     (working copy)
@@ -421,9 +421,6 @@
   ULONGLONG QuadPart;
 } ULARGE_INTEGER, *PULARGE_INTEGER;
 
-/* Physical Addresses are always treated as 64-bit wide */
-typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;
-
 /* Locally Unique Identifier */
 typedef struct _LUID {
   ULONG LowPart;
@@ -432,6 +429,9 @@
 
 #endif /* _LARGE_INTEGER_DEFINED */
 
+/* Physical Addresses are always treated as 64-bit wide */
+typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;
+
 /* Native API Return Value Macros */
 #define NT_SUCCESS(Status)              (((NTSTATUS)(Status)) >= 0)
 #define NT_INFORMATION(Status)          ((((ULONG)(Status)) >> 30) == 1)

------------------------------------------------------------------------------
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

Reply via email to