]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Include/OpenSslSupport.h
ArmPlatformPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
[mirror_edk2.git] / CryptoPkg / Include / OpenSslSupport.h
index 258854b10172b4d2510fb53964186fd7fda70a55..ed889e91c7cc7aaee2cf608f4951d810bff103e0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Root include file to support building OpenSSL Crypto Library.\r
 \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -41,8 +41,6 @@ typedef VOID  *FILE;
 #define va_end(Marker)                ((void)0)\r
 #endif\r
 \r
-\r
-\r
 //\r
 // #defines from EFI Application Toolkit required to buiild Open SSL\r
 //\r
@@ -74,7 +72,7 @@ typedef VOID  *FILE;
    portably, hence it is provided by a Standard C header file.\r
    For pre-Standard C compilers, here is a version that usually works\r
    (but watch out!): */\r
-#define offsetof(type, member) ( (int) & ((type*)0) -> member )\r
+#define offsetof(type, member) OFFSET_OF (type, member)\r
 \r
 //\r
 // Basic types from EFI Application Toolkit required to buiild Open SSL\r
@@ -219,9 +217,9 @@ __sighandler_t *signal     (int, __sighandler_t *);
 //\r
 // Global variables from EFI Application Toolkit required to buiild Open SSL\r
 //\r
-static FILE  *stderr;\r
-static FILE  *stdin;\r
-static FILE  *stdout;\r
+extern FILE  *stderr;\r
+extern FILE  *stdin;\r
+extern FILE  *stdout;\r
 \r
 //\r
 // Macros that directly map functions to BaseLib, BaseMemoryLib, and DebugLib functions\r
@@ -241,7 +239,6 @@ static FILE  *stdout;
 #define abort()                           ASSERT (FALSE)\r
 #define assert(expression)\r
 #define localtime(timer)                  NULL\r
-#define gmtime(timer)                     NULL\r
 #define gmtime_r(timer,result)            (result = NULL)\r
 \r
 #endif\r