From 78b993a8f9dd5985a797037b8b6ecad5355ea0b2 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sun, 10 May 2009 18:35:35 +0000 Subject: [PATCH] Fix ICC build break properly Update set of module types to include DXE_SMM and DXERUNTIME git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8281 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c | 8 +++++--- EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf | 6 ++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c index d8201ce542..0595db776f 100644 --- a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c +++ b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c @@ -13,10 +13,13 @@ **/ +#include + +#include + #include #include #include -#include // // Lookup table of ISO639-2 3 character language codes to ISO 639-1 2 character language codes @@ -238,7 +241,7 @@ InternalLanguageLibToLower ( ) { for (; Length > 0; Length--, Destination++, Source++) { - *Destination = (*Source >= 'A' && *Source <= 'Z') ? (CHAR8)(*Source + ('a' - 'A')) : *Source; + *Destination = (CHAR8)((*Source >= 'A' && *Source <= 'Z') ? *Source + ('a' - 'A') : *Source); } } @@ -496,4 +499,3 @@ ConvertLanguagesRfc4646ToIso639 ( Iso639Languages[Iso639Index] = '\0'; return Iso639Languages; } - diff --git a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf index 1b4aed2777..8b2959972d 100644 --- a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf +++ b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf @@ -22,8 +22,7 @@ FILE_GUID = 283cad13-a151-4d55-be2d-96ea57392a82 MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = LanguageLib|DXE_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION UEFI_DRIVER - + LIBRARY_CLASS = LanguageLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION UEFI_DRIVER # # VALID_ARCHITECTURES = IA32 X64 IPF EBC @@ -37,7 +36,6 @@ EdkCompatibilityPkg/EdkCompatibilityPkg.dec [LibraryClasses] - MemoryAllocationLib BaseLib DebugLib - + MemoryAllocationLib