PATCH - winnt.h
Steven Edwards <Steven_Ed4153-/[email protected]> Tue, 19 Aug 2003 17:58:27 -0400
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Organization | ReactOS Project |
| Message-ID | <[email protected]> |
With this WINEs imagehlp.dll should build under Mingw + w32api headers. Check with the headers in MS_VC 6/ Changlog: 2003-08-09 Steven Edwards <Steven__Ed4153-/[email protected]> * include/winnt.h - Add CONTAINING_RECORD marc Index: winnt.h =================================================================== RCS file: /cvs/src/src/winsup/w32api/include/winnt.h,v retrieving revision 1.70 diff -u -r1.70 winnt.h --- winnt.h 22 Jul 2003 22:21:26 -0000 1.70 +++ winnt.h 19 Aug 2003 21:52:08 -0000 @@ -209,6 +209,8 @@ #define INVALID_FILE_ATTRIBUTES (DWORD (-1)) /* Also in ddk/winddk.h */ +#define CONTAINING_RECORD(address, type, field) \ + ((type *)((PCHAR)(address) - (PCHAR)(&((type *)0)->field))) #define FILE_LIST_DIRECTORY 0x00000001 #define FILE_READ_DATA 0x00000001 #define FILE_ADD_FILE 0x00000002 ------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104