audk/CryptoPkg/Include
Laszlo Ersek afc18ead28 CryptoPkg: OpenSslSupport.h: edk2-ize offsetof() macro for gcc-4.8 / X64
Code added in SVN r16339 ("CryptoPkg Updates to support RFC3161 timestamp
signature verification.") introduced many new uses of the offsetof()
macro. Since the offsetof() macro in "OpenSslSupport.h" casts a pointer to
an "int", it triggers a large number of

  error: cast from pointer to integer of different size
  [-Werror=pointer-to-int-cast]

errors when building CryptoPkg with gcc-4.8 for X64.

Remedy this by directing offsetof() to the OFFSET_OF() macro in
"MdePkg/Include/Base.h" (which matches how "OpenSslSupport.h" resolves the
va_*() macros too).

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Laszlo Ersek <lersek@redhat.com>

Build-tested-by: Scott Duplichan <scott@notabs.org>

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

Reviewed-by: Qin Long <qin.long@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16388 6f19259b-4bc3-4df7-8a09-765794883524
2014-11-14 10:24:33 +00:00
..
Library CryptoPkg Updates to support RFC3161 timestamp signature verification. 2014-11-12 08:51:45 +00:00
Protocol Fix issue that RsaPkcs1Verify() may not work in PEI phase. 2012-11-22 05:07:22 +00:00
arpa Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
netinet Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
openssl Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
sys Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
OpenSslSupport.h CryptoPkg: OpenSslSupport.h: edk2-ize offsetof() macro for gcc-4.8 / X64 2014-11-14 10:24:33 +00:00
assert.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
ctype.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
dirent.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
errno.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
limits.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
malloc.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
math.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
netdb.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
sgtty.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
signal.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
stdarg.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
stddef.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
stdio.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
stdlib.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
string.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
strings.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
syslog.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
time.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
unistd.h Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00