commit | 818ff8c267c146967cda6e9e35e56e7f99509d5f | [log] [tgz] |
---|---|---|
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | Wed Oct 13 07:08:06 2010 +0000 |
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | Wed Oct 13 07:08:06 2010 +0000 |
tree | 5eb0ef9b03f5c1147f1a8a7869eb081e0ef29202 | |
parent | 2b0fcbf5379b240ebeeff3697d4bbe57d2bf8aab [diff] |
MdePkg: Use builtin offsetof function for GCC 4.0 and newer GCC 4.0 and newer have a builtin function for implementing 'offsetof' therefore we make use of it for our OFFSET_OF macro. References: http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Offsetof.html http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Offsetof.html git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10931 6f19259b-4bc3-4df7-8a09-765794883524