mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
CryptoPkg OpenSslSupport.h: Do not instantiate data in an include file
Include files should never instantiate data. Data should only be referenced as an 'extern' within include files. The previous code would generate a GCC warning, since the static data items were not always referenced. Signed-off-by: jljusten Reviewed-by: qlong git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11608 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b58675785e
commit
c61fb9c8a4
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Root include file to support building OpenSSL Crypto Library.
|
Root include file to support building OpenSSL Crypto Library.
|
||||||
|
|
||||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -219,9 +219,9 @@ __sighandler_t *signal (int, __sighandler_t *);
|
|||||||
//
|
//
|
||||||
// Global variables from EFI Application Toolkit required to buiild Open SSL
|
// Global variables from EFI Application Toolkit required to buiild Open SSL
|
||||||
//
|
//
|
||||||
static FILE *stderr;
|
extern FILE *stderr;
|
||||||
static FILE *stdin;
|
extern FILE *stdin;
|
||||||
static FILE *stdout;
|
extern FILE *stdout;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Macros that directly map functions to BaseLib, BaseMemoryLib, and DebugLib functions
|
// Macros that directly map functions to BaseLib, BaseMemoryLib, and DebugLib functions
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
C Run-Time Libraries (CRT) Wrapper Implementation for OpenSSL-based
|
C Run-Time Libraries (CRT) Wrapper Implementation for OpenSSL-based
|
||||||
Cryptographic Library.
|
Cryptographic Library.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -17,6 +17,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
int errno = 0;
|
int errno = 0;
|
||||||
|
|
||||||
|
FILE *stderr = NULL;
|
||||||
|
FILE *stdin = NULL;
|
||||||
|
FILE *stdout = NULL;
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
INTN
|
INTN
|
||||||
(*SORT_COMPARE)(
|
(*SORT_COMPARE)(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user