]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix ICC build break properly
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 10 May 2009 18:35:35 +0000 (18:35 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 10 May 2009 18:35:35 +0000 (18:35 +0000)
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
EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf

index d8201ce542dc480c5a00914a1c7ab6a73042bbf6..0595db776fd1f6e81440b8655cc8df5b7aa8b0ee 100644 (file)
 \r
 **/\r
 \r
+#include <Uefi.h>\r
+\r
+#include <Library/LanguageLib.h>\r
+\r
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
-#include <Library/LanguageLib.h>\r
 \r
 //\r
 // Lookup table of ISO639-2 3 character language codes to ISO 639-1 2 character language codes\r
@@ -238,7 +241,7 @@ InternalLanguageLibToLower (
   )\r
 {\r
   for (; Length > 0; Length--, Destination++, Source++) {\r
-    *Destination = (*Source >= 'A' && *Source <= 'Z') ? (CHAR8)(*Source + ('a' - 'A')) : *Source;\r
+    *Destination = (CHAR8)((*Source >= 'A' && *Source <= 'Z') ? *Source + ('a' - 'A') : *Source);\r
   }\r
 }\r
 \r
@@ -496,4 +499,3 @@ ConvertLanguagesRfc4646ToIso639 (
   Iso639Languages[Iso639Index] = '\0';\r
   return Iso639Languages;\r
 }\r
-\r
index 1b4aed27770201eb0373a5e2384998e053a07ee1..8b2959972d2b48cde31ab3ebc6aa336ea50bf5fe 100644 (file)
@@ -22,8 +22,7 @@
   FILE_GUID                      = 283cad13-a151-4d55-be2d-96ea57392a82 \r
   MODULE_TYPE                    = UEFI_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = LanguageLib|DXE_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
-\r
+  LIBRARY_CLASS                  = LanguageLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
 \r
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
@@ -37,7 +36,6 @@
   EdkCompatibilityPkg/EdkCompatibilityPkg.dec\r
 \r
 [LibraryClasses]\r
-  MemoryAllocationLib\r
   BaseLib\r
   DebugLib\r
-\r
+  MemoryAllocationLib\r