diff options
author | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-31 00:02:56 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-31 00:02:56 +0000 |
commit | c648f73cd2e807fb7f1e734b12b912b5953eb9e0 (patch) | |
tree | ddc8382ba7295e1a568dbd1bed0190f18230895e /StdLib/PosixLib/Glob | |
parent | 40842a5e7c5b66e711d709f16ae6fc1a7134e3e0 (diff) | |
download | edk2-platforms-c648f73cd2e807fb7f1e734b12b912b5953eb9e0.tar.xz |
Fix GCC build errors.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12240 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/PosixLib/Glob')
-rw-r--r-- | StdLib/PosixLib/Glob/LibGlob.inf | 5 | ||||
-rw-r--r-- | StdLib/PosixLib/Glob/glob.c | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/StdLib/PosixLib/Glob/LibGlob.inf b/StdLib/PosixLib/Glob/LibGlob.inf index fab4730bb8..06404382b7 100644 --- a/StdLib/PosixLib/Glob/LibGlob.inf +++ b/StdLib/PosixLib/Glob/LibGlob.inf @@ -23,7 +23,7 @@ #
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC
+# VALID_ARCHITECTURES = IA32 X64 IPF
#
[Sources.common]
@@ -40,8 +40,7 @@ MemoryAllocationLib
ShellLib
BaseLib
+ LibC
LibStdio
LibStdLib
LibString
-
-[Pcd]
diff --git a/StdLib/PosixLib/Glob/glob.c b/StdLib/PosixLib/Glob/glob.c index dec78d89d6..a6a2dc156e 100644 --- a/StdLib/PosixLib/Glob/glob.c +++ b/StdLib/PosixLib/Glob/glob.c @@ -23,6 +23,15 @@ * gl_matchc:
* 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
* The Regents of the University of California. All rights reserved.
*
@@ -56,8 +65,10 @@ glob.c 8.3 (Berkeley) 10/13/93
NetBSD: glob.c,v 1.23.4.1 2010/07/19 18:14:08 riz Exp
*/
-#pragma warning ( disable : 4244 )
-#pragma warning ( disable : 4018 )
+#if defined(_MSC_VER)
+ #pragma warning ( disable : 4244 )
+ #pragma warning ( disable : 4018 )
+#endif
#include <LibConfig.h>
|