/** @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
#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
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
//\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
#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