]> sourceware.org Git - newlib-cygwin.git/commitdiff
2003-10-13 Steven Edwards <Steven_Ed4153@yahoo.com>
authorDanny Smith <dannysmith@users.sourceforge.net>
Mon, 13 Oct 2003 05:22:30 +0000 (05:22 +0000)
committerDanny Smith <dannysmith@users.sourceforge.net>
Mon, 13 Oct 2003 05:22:30 +0000 (05:22 +0000)
* include/winnt.h (CONTAINING_RECORD): Add macro.

winsup/w32api/ChangeLog
winsup/w32api/include/winnt.h

index 52864d790e243a9f2699c80a3f5b2dc19975479c..0bfeb685cbe12140eaacd1da6f5d80f4ba312fa9 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-13  Steven Edwards  <Steven_Ed4153@yahoo.com>
+
+       * include/winnt.h (CONTAINING_RECORD): Add macro.
+
 2003-10-13  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * include/winnt.h: (FILE_SUPERSEDED, FILE_OPENED, FILE_CREATED,
index a376cfe4dfa909c5e26ab46e13321703aed0ab41..9002aa885383d926cb3827d36d38a5f7dc40af5e 100644 (file)
@@ -806,7 +806,13 @@ typedef DWORD FLONG;
 #define MESSAGE_RESOURCE_UNICODE 1
 #define RTL_CRITSECT_TYPE 0
 #define RTL_RESOURCE_TYPE 1
+/* Also in winddk.h */
 #define FIELD_OFFSET(t,f) ((LONG)&(((t*)0)->f))
+#ifndef CONTAINING_RECORD
+#define CONTAINING_RECORD(address, type, field) \
+  ((type*)((PCHAR)(address) - (PCHAR)(&((type *)0)->field)))
+#endif
+/* end winddk.h */
 #define IMAGE_SIZEOF_FILE_HEADER       20
 #define IMAGE_FILE_RELOCS_STRIPPED     1
 #define IMAGE_FILE_EXECUTABLE_IMAGE    2
This page took 0.03841 seconds and 5 git commands to generate.