Fix GCC build errors.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12240 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
darylm503 2011-08-31 00:02:56 +00:00
parent 40842a5e7c
commit c648f73cd2
5 changed files with 21 additions and 11 deletions

View File

@ -26,8 +26,8 @@
#define __LONG_MIN (-2147483647L - 1L) // -(2^31 - 1) #define __LONG_MIN (-2147483647L - 1L) // -(2^31 - 1)
/** Maximum value for an object of type long int. **/ /** Maximum value for an object of type long int. **/
#define __LONG_MAX +2147483647L // 2^31 - 1 #define __LONG_MAX 2147483647L // 2^31 - 1
/** Maximum value for an object of type unsigned long int. **/ /** Maximum value for an object of type unsigned long int. **/
#define __ULONG_MAX 0xffffffff // 2^32 - 1 #define __ULONG_MAX 0xffffffffUL // 2^32 - 1

View File

@ -5,13 +5,13 @@
#if defined(__GNUC__) #if defined(__GNUC__)
#define __LONG_BIT 64 #define __LONG_BIT 64
/** minimum value for an object of type long int **/ /** minimum value for an object of type long int **/
#define __LONG_MIN (-9223372036854775807L - 1L) // -(2^63 - 1) #define __LONG_MIN (-9223372036854775807LL - 1LL) // -(2^63 - 1)
/** maximum value for an object of type long int **/ /** maximum value for an object of type long int **/
#define __LONG_MAX +9223372036854775807L // 2^63 - 1 #define __LONG_MAX +9223372036854775807LL // 2^63 - 1
/** maximum value for an object of type unsigned long int **/ /** maximum value for an object of type unsigned long int **/
#define __ULONG_MAX 0xFFFFFFFFFFFFFFFFUL // 2^64 - 1 #define __ULONG_MAX 0xFFFFFFFFFFFFFFFFULL // 2^64 - 1
#else #else
#define __LONG_BIT 32 #define __LONG_BIT 32
/** minimum value for an object of type long int **/ /** minimum value for an object of type long int **/

View File

@ -143,4 +143,4 @@
# Nasty things could happen if you do. # Nasty things could happen if you do.
# #
[BuildOptions] [BuildOptions]
GCC:*_*_*_CC_FLAGS = -fno-builtin -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast GCC:*_*_*_CC_FLAGS = -fno-builtin -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-format

View File

@ -23,7 +23,7 @@
# #
# VALID_ARCHITECTURES = IA32 X64 IPF EBC # VALID_ARCHITECTURES = IA32 X64 IPF
# #
[Sources.common] [Sources.common]
@ -40,8 +40,7 @@
MemoryAllocationLib MemoryAllocationLib
ShellLib ShellLib
BaseLib BaseLib
LibC
LibStdio LibStdio
LibStdLib LibStdLib
LibString LibString
[Pcd]

View File

@ -23,6 +23,15 @@
* gl_matchc: * gl_matchc:
* Number of matches in the current invocation of glob. * Number of matches in the current invocation of glob.
* *
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-license.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
* Copyright (c) 1989, 1993 * Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
@ -56,8 +65,10 @@
glob.c 8.3 (Berkeley) 10/13/93 glob.c 8.3 (Berkeley) 10/13/93
NetBSD: glob.c,v 1.23.4.1 2010/07/19 18:14:08 riz Exp NetBSD: glob.c,v 1.23.4.1 2010/07/19 18:14:08 riz Exp
*/ */
#pragma warning ( disable : 4244 ) #if defined(_MSC_VER)
#pragma warning ( disable : 4018 ) #pragma warning ( disable : 4244 )
#pragma warning ( disable : 4018 )
#endif
#include <LibConfig.h> #include <LibConfig.h>